mod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo

This commit is contained in:
Matthew Wild 2009-12-21 22:00:49 +00:00
parent 5226f7e43a
commit 566e3c4ac1

View file

@ -115,6 +115,9 @@ local function sasl_handler(session, stanza)
if not session.sasl_handler then
return session.send(build_reply("failure", "invalid-mechanism"));
end
if secure_auth_only and not session.secure then
return session.send(build_reply("failure", "encryption-required"));
end
elseif not session.sasl_handler then
return; -- FIXME ignoring out of order stanzas because ejabberd does
end