Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 1912:126401a7159f
require_encryption deprecated, use c2s_require_encryption instead
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 05 Oct 2009 14:59:30 +0100 |
parent | 1847:1842da566c7d |
child | 2013:0bbbc9042361 |
comparison
equal
deleted
inserted
replaced
1911:bfe120db1ec4 | 1912:126401a7159f |
---|---|
23 local tostring = tostring; | 23 local tostring = tostring; |
24 local jid_split = require "util.jid".split | 24 local jid_split = require "util.jid".split |
25 local md5 = require "util.hashes".md5; | 25 local md5 = require "util.hashes".md5; |
26 local config = require "core.configmanager"; | 26 local config = require "core.configmanager"; |
27 | 27 |
28 local secure_auth_only = config.get(module:get_host(), "core", "require_encryption"); | 28 local secure_auth_only = config.get(module:get_host(), "core", "c2s_require_encryption") or config.get(module:get_host(), "core", "require_encryption"); |
29 | 29 |
30 local log = module._log; | 30 local log = module._log; |
31 | 31 |
32 local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl'; | 32 local xmlns_sasl ='urn:ietf:params:xml:ns:xmpp-sasl'; |
33 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind'; | 33 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind'; |