comparison 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
comparison
equal deleted inserted replaced
2645:f2cf1daa42cb 2646:712cb4ff3e13
121 MESS_TYPE_NORMAL, 121 MESS_TYPE_NORMAL,
122 ) 122 )
123 MESS_TYPE_ALL = MESS_TYPE_STANDARD + (MESS_TYPE_INFO, MESS_TYPE_AUTO) 123 MESS_TYPE_ALL = MESS_TYPE_STANDARD + (MESS_TYPE_INFO, MESS_TYPE_AUTO)
124 124
125 MESS_EXTRA_INFO = "info_type" 125 MESS_EXTRA_INFO = "info_type"
126
127 MESS_KEY_ENCRYPTION = "ENCRYPTION"
126 128
127 ## Chat ## 129 ## Chat ##
128 CHAT_ONE2ONE = "one2one" 130 CHAT_ONE2ONE = "one2one"
129 CHAT_GROUP = "group" 131 CHAT_GROUP = "group"
130 132