File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ def _get_info(backend: Backend) -> pb.GeneralInfo:
72
72
)
73
73
74
74
75
+ def _convert_crypto (
76
+ crypto : Optional [rbe .SessionCrypto ],
77
+ ) -> Optional [pb .SessionCrypto ]:
78
+ if not crypto :
79
+ return None
80
+ return pb .SessionCrypto (cipher = crypto .cipher , degree = crypto .degree )
81
+
82
+
75
83
def _convert_session (session : rbe .Session ) -> pb .SessionInfo :
76
84
info = pb .SessionInfo (
77
85
session_id = session .session_id ,
@@ -80,6 +88,8 @@ def _convert_session(session: rbe.Session) -> pb.SessionInfo:
80
88
remote_machine = session .remote_machine ,
81
89
hostname = session .hostname ,
82
90
session_dialect = session .session_dialect ,
91
+ encryption = _convert_crypto (session .encryption ),
92
+ signing = _convert_crypto (session .signing ),
83
93
)
84
94
# python side takes -1 to mean not found uid/gid. in protobufs
85
95
# that would mean the fields are unset
You can’t perform that action at this time.
0 commit comments