aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo
diff options
context:
space:
mode:
authorSamuel Hand <sdhand@users.noreply.github.com>2018-05-28 15:19:51 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2018-05-28 16:19:51 +0200
commit62e5e6485e75df355226e3d48ee23ea11aff223f (patch)
tree0dd41573e658aa1d377bfa4b257ad3f857bc5a3f /plugins/omemo
parent5425243203cbf5f86b33c4014c5aa787c6aae856 (diff)
downloaddino-62e5e6485e75df355226e3d48ee23ea11aff223f.tar.gz
dino-62e5e6485e75df355226e3d48ee23ea11aff223f.zip
Implement XEP-0380 for the OMEMO and OpenPGP plugins (#359)
* Implement XEP-0380 in a naive fashion for both the OMEMO and OpenPGP plugins * Move the XEP-0380 namespace to a constant * Move the implementation for xep-0380 to its own module * Remove un-needed lines from plugins/openpgp/src/stream_module.vala
Diffstat (limited to 'plugins/omemo')
-rw-r--r--plugins/omemo/src/stream_module.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/omemo/src/stream_module.vala b/plugins/omemo/src/stream_module.vala
index 4494e834..0148a7f2 100644
--- a/plugins/omemo/src/stream_module.vala
+++ b/plugins/omemo/src/stream_module.vala
@@ -94,6 +94,7 @@ public class StreamModule : XmppStreamModule {
}
message.stanza.put_node(encrypted);
+ Xep.ExplicitEncryption.add_encryption_tag_to_message(message, NS_URI, "OMEMO");
message.body = "[This message is OMEMO encrypted]";
status.encrypted = true;
} catch (Error e) {