aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2011-02-07 13:24:42 +0100
committerTobias Markmann <tm@ayena.de>2011-02-07 13:24:42 +0100
commit0a2715f365f2dc28c33933d486fecdb64daf7a89 (patch)
treee3a4d6d317f5efb5d7714e30abc01be35e8a4d2c /util/sasl
parentf575f1eb40aef2e7196badfe41d217b6f7fbf350 (diff)
downloadprosody-0a2715f365f2dc28c33933d486fecdb64daf7a89.tar.gz
prosody-0a2715f365f2dc28c33933d486fecdb64daf7a89.zip
Only advertise mechanisms needing channel binding if a channel binding backend is avaliable.
Diffstat (limited to 'util/sasl')
-rw-r--r--util/sasl/scram.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index ad26658b..071de505 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -249,7 +249,7 @@ function init(registerMechanism)
registerMechanism("SCRAM-"..hash_name, {"plain", "scram_"..(hashprep(hash_name))}, scram_gen(hash_name:lower(), hash, hmac_hash));
-- register channel binding equivalent
- registerMechanism("SCRAM-"..hash_name.."-PLUS", {"plain", "scram_"..(hashprep(hash_name))}, scram_gen(hash_name:lower(), hash, hmac_hash));
+ registerMechanism("SCRAM-"..hash_name.."-PLUS", {"plain", "scram_"..(hashprep(hash_name))}, scram_gen(hash_name:lower(), hash, hmac_hash), {"tls-unique"});
end
registerSCRAMMechanism("SHA-1", sha1, hmac_sha1);