Comparison

plugins/mod_saslauth.lua @ 120:ef964468f174

TLS/SASL no longer should include the connhandler module
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Oct 2008 03:53:51 +0100
parent 99:ba08b8a4eeef
child 278:770a78cd38d7
child 281:826308c07627
comparison
equal deleted inserted replaced
119:b48a573608e8 120:ef964468f174
11 11
12 local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl'; 12 local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl';
13 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind'; 13 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind';
14 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; 14 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
15 15
16 local new_connhandler = require "net.connhandlers".new;
17 local new_sasl = require "util.sasl".new; 16 local new_sasl = require "util.sasl".new;
18 17
19 add_handler("c2s_unauthed", "auth", xmlns_sasl, 18 add_handler("c2s_unauthed", "auth", xmlns_sasl,
20 function (session, stanza) 19 function (session, stanza)
21 if not session.sasl_handler then 20 if not session.sasl_handler then