Skip to content

Commit e62658a

Browse files
grpc: add session crypto message to control.proto
Add session crypto message to the protobuf/grpc definition. Regenerate generated files. Signed-off-by: John Mulligan <[email protected]>
1 parent c77b851 commit e62658a

File tree

3 files changed

+61
-18
lines changed

3 files changed

+61
-18
lines changed

sambacc/grpc/generated/control_pb2.py

Lines changed: 27 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sambacc/grpc/generated/control_pb2.pyi

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@ class StatusRequest(google.protobuf.message.Message):
100100

101101
global___StatusRequest = StatusRequest
102102

103+
class SessionCrypto(google.protobuf.message.Message):
104+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
105+
106+
CIPHER_FIELD_NUMBER: builtins.int
107+
DEGREE_FIELD_NUMBER: builtins.int
108+
cipher: builtins.str
109+
degree: builtins.str
110+
def __init__(
111+
self,
112+
*,
113+
cipher: builtins.str = ...,
114+
degree: builtins.str = ...,
115+
) -> None: ...
116+
def ClearField(self, field_name: typing_extensions.Literal["cipher", b"cipher", "degree", b"degree"]) -> None: ...
117+
118+
global___SessionCrypto = SessionCrypto
119+
103120
class SessionInfo(google.protobuf.message.Message):
104121
DESCRIPTOR: google.protobuf.descriptor.Descriptor
105122

@@ -111,6 +128,8 @@ class SessionInfo(google.protobuf.message.Message):
111128
SESSION_DIALECT_FIELD_NUMBER: builtins.int
112129
UID_FIELD_NUMBER: builtins.int
113130
GID_FIELD_NUMBER: builtins.int
131+
ENCRYPTION_FIELD_NUMBER: builtins.int
132+
SIGNING_FIELD_NUMBER: builtins.int
114133
session_id: builtins.str
115134
username: builtins.str
116135
groupname: builtins.str
@@ -119,6 +138,10 @@ class SessionInfo(google.protobuf.message.Message):
119138
session_dialect: builtins.str
120139
uid: builtins.int
121140
gid: builtins.int
141+
@property
142+
def encryption(self) -> global___SessionCrypto: ...
143+
@property
144+
def signing(self) -> global___SessionCrypto: ...
122145
def __init__(
123146
self,
124147
*,
@@ -130,8 +153,11 @@ class SessionInfo(google.protobuf.message.Message):
130153
session_dialect: builtins.str = ...,
131154
uid: builtins.int = ...,
132155
gid: builtins.int = ...,
156+
encryption: global___SessionCrypto | None = ...,
157+
signing: global___SessionCrypto | None = ...,
133158
) -> None: ...
134-
def ClearField(self, field_name: typing_extensions.Literal["gid", b"gid", "groupname", b"groupname", "hostname", b"hostname", "remote_machine", b"remote_machine", "session_dialect", b"session_dialect", "session_id", b"session_id", "uid", b"uid", "username", b"username"]) -> None: ...
159+
def HasField(self, field_name: typing_extensions.Literal["encryption", b"encryption", "signing", b"signing"]) -> builtins.bool: ...
160+
def ClearField(self, field_name: typing_extensions.Literal["encryption", b"encryption", "gid", b"gid", "groupname", b"groupname", "hostname", b"hostname", "remote_machine", b"remote_machine", "session_dialect", b"session_dialect", "session_id", b"session_id", "signing", b"signing", "uid", b"uid", "username", b"username"]) -> None: ...
135161

136162
global___SessionInfo = SessionInfo
137163

sambacc/grpc/protobufs/control.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ message GeneralInfo {
3232

3333
message StatusRequest {}
3434

35+
message SessionCrypto {
36+
string cipher = 1;
37+
string degree = 2;
38+
}
39+
3540
message SessionInfo {
3641
string session_id = 1;
3742
string username = 2;
@@ -41,6 +46,8 @@ message SessionInfo {
4146
string session_dialect = 6;
4247
uint32 uid = 7;
4348
uint32 gid = 8;
49+
SessionCrypto encryption = 9;
50+
SessionCrypto signing = 10;
4451
}
4552

4653
message ConnInfo {

0 commit comments

Comments
 (0)