Mercurial > libervia-backend
diff sat_frontends/bridge/pb.py @ 2733:e347e32aa07f
core (memory/encryption): new encryptionNamespaceGet and encryptionTrustUIGet methods:
- encryptionNamespaceGet retrieves algorithm namespace from its short name
- encryptionTrustUIGet retrieves trust mangement XMLUI from encryption plugin
- new markAsUntrusted internal helper method, to add untrusted flag to message data
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 02 Jan 2019 18:22:30 +0100 |
parents | 4e130cc9bfc0 |
children | 378188abe941 |
line wrap: on
line diff
--- a/sat_frontends/bridge/pb.py Thu Dec 27 11:40:04 2018 +0100 +++ b/sat_frontends/bridge/pb.py Wed Jan 02 18:22:30 2019 +0100 @@ -214,6 +214,14 @@ errback = self._generic_errback d.addErrback(errback) + def encryptionNamespaceGet(self, arg_0, callback=None, errback=None): + d = self.root.callRemote("encryptionNamespaceGet", arg_0) + if callback is not None: + d.addCallback(callback) + if errback is None: + errback = self._generic_errback + d.addErrback(errback) + def encryptionPluginsGet(self, callback=None, errback=None): d = self.root.callRemote("encryptionPluginsGet") if callback is not None: @@ -222,6 +230,14 @@ errback = self._generic_errback d.addErrback(errback) + def encryptionTrustUIGet(self, namespace, arg_1, profile_key, callback=None, errback=None): + d = self.root.callRemote("encryptionTrustUIGet", namespace, arg_1, profile_key) + if callback is not None: + d.addCallback(callback) + if errback is None: + errback = self._generic_errback + d.addErrback(errback) + def getConfig(self, section, name, callback=None, errback=None): d = self.root.callRemote("getConfig", section, name) if callback is not None: @@ -398,8 +414,8 @@ errback = self._generic_errback d.addErrback(errback) - def messageEncryptionStart(self, to_jid, encryption_ns='', replace=False, profile_key="@NONE@", callback=None, errback=None): - d = self.root.callRemote("messageEncryptionStart", to_jid, encryption_ns, replace, profile_key) + def messageEncryptionStart(self, to_jid, namespace='', replace=False, profile_key="@NONE@", callback=None, errback=None): + d = self.root.callRemote("messageEncryptionStart", to_jid, namespace, replace, profile_key) if callback is not None: d.addCallback(lambda dummy: callback()) if errback is None: