From 4847f834bd8f6a1168851b0918c080fc0e6c13b8 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 18 Sep 2016 17:49:52 +0900 Subject: Add a plugin for XEP-0380: Explicit Message Encryption. --- slixmpp/plugins/xep_0380/stanza.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 slixmpp/plugins/xep_0380/stanza.py (limited to 'slixmpp/plugins/xep_0380/stanza.py') diff --git a/slixmpp/plugins/xep_0380/stanza.py b/slixmpp/plugins/xep_0380/stanza.py new file mode 100644 index 00000000..7dd678b1 --- /dev/null +++ b/slixmpp/plugins/xep_0380/stanza.py @@ -0,0 +1,16 @@ +""" + Slixmpp: The Slick XMPP Library + Copyright (C) 2016 Emmanuel Gil Peyrot + This file is part of Slixmpp. + + See the file LICENSE for copying permission. +""" + +from slixmpp.xmlstream import ElementBase + + +class Encryption(ElementBase): + name = 'encryption' + namespace = 'urn:xmpp:eme:0' + plugin_attrib = 'eme' + interfaces = {'namespace', 'name'} -- cgit v1.2.3