diff sat/core/constants.py @ 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 779351da2c13
children 0fa217fafabf
line wrap: on
line diff
--- a/sat/core/constants.py	Sun Jul 29 19:22:51 2018 +0200
+++ b/sat/core/constants.py	Sun Jul 29 19:22:56 2018 +0200
@@ -124,6 +124,8 @@
 
     MESS_EXTRA_INFO = "info_type"
 
+    MESS_KEY_ENCRYPTION = "ENCRYPTION"
+
     ## Chat ##
     CHAT_ONE2ONE = "one2one"
     CHAT_GROUP = "group"