summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/sasl_anonymous.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-03 17:00:51 -0700
committerLance Stout <lancestout@gmail.com>2011-08-03 17:00:51 -0700
commitd4091dbde641dc9796b51e032ea23a0ba5c1fcbb (patch)
tree4efc7d117b4e40b630c3b09a7f983ba2dbd3cb98 /sleekxmpp/features/sasl_anonymous.py
parent9a6eb333e65e58f705aca6a8874d5b65bd52e0e7 (diff)
downloadslixmpp-d4091dbde641dc9796b51e032ea23a0ba5c1fcbb.tar.gz
slixmpp-d4091dbde641dc9796b51e032ea23a0ba5c1fcbb.tar.bz2
slixmpp-d4091dbde641dc9796b51e032ea23a0ba5c1fcbb.tar.xz
slixmpp-d4091dbde641dc9796b51e032ea23a0ba5c1fcbb.zip
Integrate a modified version of Dave Cridland's Suelta SASL library.
Diffstat (limited to 'sleekxmpp/features/sasl_anonymous.py')
-rw-r--r--sleekxmpp/features/sasl_anonymous.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/sleekxmpp/features/sasl_anonymous.py b/sleekxmpp/features/sasl_anonymous.py
deleted file mode 100644
index 98a0d36e..00000000
--- a/sleekxmpp/features/sasl_anonymous.py
+++ /dev/null
@@ -1,31 +0,0 @@
-import base64
-import sys
-import logging
-
-from sleekxmpp.plugins.base import base_plugin
-
-
-log = logging.getLogger(__name__)
-
-
-class sasl_anonymous(base_plugin):
-
- def plugin_init(self):
- self.name = 'SASL ANONYMOUS'
- self.rfc = '6120'
- self.description = 'SASL ANONYMOUS Mechanism'
- self.stanza = self.xmpp['feature_mechanisms'].stanza
-
- self.xmpp['feature_mechanisms'].register('ANONYMOUS',
- self._handle_anonymous,
- priority=self.config.get('priority', 0))
-
- def _handle_anonymous(self):
- if self.xmpp.boundjid.user:
- return False
-
- resp = self.stanza.Auth(self.xmpp)
- resp['mechanism'] = 'ANONYMOUS'
- resp.send(now=True)
-
- return True