aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-23 03:53:51 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-23 03:53:51 +0100
commit59dd4ed3cdd31081b4766446cb6fac03afa61e00 (patch)
treed3a4655671fcfd83964a705281555ffe9a51c079
parentece9ac97618254bbac85688b4a01288699d2aca3 (diff)
downloadprosody-59dd4ed3cdd31081b4766446cb6fac03afa61e00.tar.gz
prosody-59dd4ed3cdd31081b4766446cb6fac03afa61e00.zip
TLS/SASL no longer should include the connhandler module
-rw-r--r--plugins/mod_saslauth.lua1
-rw-r--r--plugins/mod_tls.lua4
2 files changed, 1 insertions, 4 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 1376b87b..24c82a1c 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -13,7 +13,6 @@ local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl';
local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind';
local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
-local new_connhandler = require "net.connhandlers".new;
local new_sasl = require "util.sasl".new;
add_handler("c2s_unauthed", "auth", xmlns_sasl,
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index ab06b9a5..fe787942 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -13,8 +13,6 @@ local log = require "util.logger".init("mod_starttls");
local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls';
-local new_connhandler = require "net.connhandlers".new;
-
add_handler("c2s_unauthed", "starttls", xmlns_starttls,
function (session, stanza)
if session.conn.starttls then
@@ -35,4 +33,4 @@ add_event_hook("stream-features",
if session.conn.starttls then
t_insert(features, "<starttls xmlns='"..xmlns_starttls.."'/>");
end
- end); \ No newline at end of file
+ end);