summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-06-27 15:18:29 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-07-01 19:42:45 +0200
commitfdb5baeb0c1db6dcd2a97fed7eb4037008660119 (patch)
treeca18415e9b8548e5983dbf67a52f03229c1146c8
parent3642e1320c0f2844d4d07de2da6b765ca07f8172 (diff)
downloadpoezio-fdb5baeb0c1db6dcd2a97fed7eb4037008660119.tar.gz
poezio-fdb5baeb0c1db6dcd2a97fed7eb4037008660119.tar.bz2
poezio-fdb5baeb0c1db6dcd2a97fed7eb4037008660119.tar.xz
poezio-fdb5baeb0c1db6dcd2a97fed7eb4037008660119.zip
e2ee-api: add comment on tag_whitelist
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/plugin_e2ee.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py
index eec2af63..e0a28dba 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -41,6 +41,10 @@ class E2EEPlugin(BasePlugin):
stanza_encryption = False
# Whitelist applied to messages when `stanza_encryption` is False.
+ # This might need to be changed depending on the encryption mechanism.
+ # Some encrypt directly content in <body/> for example, some use a
+ # different element like <payload/> and thus <body/> is a generic EME
+ # message.
tag_whitelist = list(map(lambda x: '{%s}%s' % (x[0], x[1]), [
(JCLIENT_NS, 'body'),
(EME_NS, EME_TAG),