Software /
code /
prosody
Comparison
plugins/mod_tls.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 | 303:89e8f53b870e |
comparison
equal
deleted
inserted
replaced
119:b48a573608e8 | 120:ef964468f174 |
---|---|
10 local tostring = tostring; | 10 local tostring = tostring; |
11 | 11 |
12 local log = require "util.logger".init("mod_starttls"); | 12 local log = require "util.logger".init("mod_starttls"); |
13 | 13 |
14 local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls'; | 14 local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls'; |
15 | |
16 local new_connhandler = require "net.connhandlers".new; | |
17 | 15 |
18 add_handler("c2s_unauthed", "starttls", xmlns_starttls, | 16 add_handler("c2s_unauthed", "starttls", xmlns_starttls, |
19 function (session, stanza) | 17 function (session, stanza) |
20 if session.conn.starttls then | 18 if session.conn.starttls then |
21 send(session, st.stanza("proceed", { xmlns = xmlns_starttls })); | 19 send(session, st.stanza("proceed", { xmlns = xmlns_starttls })); |