Skip to content

Commit

Permalink
require namespace for encryption caps
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 10, 2023
1 parent d10838e commit 5f576be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/server/proxy/proxy_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ def process_server_packet(self, proto, packet : PacketType) -> None:
if self.cipher:
from xpra.net.crypto import crypto_backend_init, new_cipher_caps, DEFAULT_PADDING # pylint: disable=import-outside-toplevel
crypto_backend_init()
padding_options = self.caps.strtupleget("cipher.padding.options", [DEFAULT_PADDING])
enc_caps = self.caps.dictget("encryption")
padding_options = typedict(enc_caps or {}).strtupleget("padding.options", [DEFAULT_PADDING])
auth_caps = new_cipher_caps(self.client_protocol,
self.cipher, self.cipher_mode, self.encryption_key, padding_options)
caps.update(auth_caps)
Expand Down

0 comments on commit 5f576be

Please sign in to comment.