diff sat/bridge/bridge_constructor/bridge_template.ini @ 2655:b8600f8130ac

core (bridge): new messageEncryptionStarted and messageEncryptionStopped signals (not used yet)
author Goffi <goffi@goffi.org>
date Sat, 11 Aug 2018 18:24:55 +0200
parents 712cb4ff3e13
children 4e130cc9bfc0
line wrap: on
line diff
--- a/sat/bridge/bridge_constructor/bridge_template.ini	Sat Aug 11 18:24:55 2018 +0200
+++ b/sat/bridge/bridge_constructor/bridge_template.ini	Sat Aug 11 18:24:55 2018 +0200
@@ -54,6 +54,31 @@
   - info_type: subtype for info messages
 doc_param_8=%(doc_profile)s
 
+[messageEncryptionStarted]
+type=signal
+category=core
+sig_in=sss
+doc=A message encryption session has been started
+doc_param_0=to_jid: JID of the recipient (bare jid if it's encrypted for all devices)
+doc_param_1=encryption_data: [JSON_OBJ] data of the encryption algorithm used, encoded as a json object.
+    it always has the following keys:
+        - name: human readable name of the algorithm
+        - namespace: namespace of the encryption plugin
+    following keys are present if suitable:
+        - directed_devices: list or resource where session is encrypted
+doc_param_2=%(doc_profile_key)s
+
+[messageEncryptionStopped]
+type=signal
+category=core
+sig_in=sa{ss}s
+doc=A message encryption session has been stopped
+doc_param_0=to_jid: JID of the recipient (full jid if it's only stopped for one device)
+doc_param_1=encryption_data: data of the encryption algorithm stopped, has a least following keys:
+    - name: human readable name of the algorithm
+    - namespace: namespace of the encryption plugin
+doc_param_2=%(doc_profile_key)s
+
 [presenceUpdate]
 type=signal
 category=core