Software /
code /
prosody
Diff
util/sasl/scram.lua @ 5841:1b0c7e7c6be8
Only advertise mechanisms needing channel binding if a channel binding backend is avaliable.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Mon, 07 Feb 2011 13:24:42 +0100 |
parent | 5840:4b484e8feafc |
child | 5843:fb6573e191cf |
line wrap: on
line diff
--- a/util/sasl/scram.lua Sun Feb 06 13:39:32 2011 +0100 +++ b/util/sasl/scram.lua Mon Feb 07 13:24:42 2011 +0100 @@ -249,7 +249,7 @@ 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);