diff sat/bridge/bridge_constructor/bridge_template.ini @ 2646:712cb4ff3e13

core: new EncryptionHandler class which manage encrypted session as a core feature: Plugin handling encryption can now register using host.registerEncryptionPlugin, and an encryption session can now be started using messageEncryptionStart bridge method. This will make encryption handling more easy, as we now know if a session is clear or e2e encrypted, and which plugin handle it.
author Goffi <goffi@goffi.org>
date Sun, 29 Jul 2018 19:22:56 +0200
parents 973d4551ffae
children b8600f8130ac
line wrap: on
line diff
--- a/sat/bridge/bridge_constructor/bridge_template.ini	Sun Jul 29 19:22:51 2018 +0200
+++ b/sat/bridge/bridge_constructor/bridge_template.ini	Sun Jul 29 19:22:56 2018 +0200
@@ -410,6 +410,18 @@
 doc_param_4=extra: optional data that can be used by a plugin to build more specific messages 
 doc_param_5=%(doc_profile_key)s
 
+[messageEncryptionStart]
+type=method
+category=core
+sig_in=sss
+sig_out=
+param_1_default=''
+param_2_default="@NONE@"
+doc=Start an encryption session
+doc_param_0=to_jid: JID of the recipient (bare_jid if it must be encoded for all devices)
+doc_param_1=encryption_ns: Namespace of the encryption algorithm to use
+doc_param_2=%(doc_profile_key)s
+
 [setPresence]
 type=method
 category=core