aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-27 00:32:04 +0200
committerKim Alvefur <zash@zash.se>2022-07-27 00:32:04 +0200
commitc1a166daa79ec4fadd2083dd7097216068f74a28 (patch)
tree154c4861b9b57018d7f21a46b3816e4578451b2a /util
parent7c8dd7ee42d3855f4360c9fdd43016ecafa64e8c (diff)
downloadprosody-c1a166daa79ec4fadd2083dd7097216068f74a28.tar.gz
prosody-c1a166daa79ec4fadd2083dd7097216068f74a28.zip
util.sasl.scram: Add 'tls-exporter' as recognised channel binding method
The last missing piece of #1760, otherwise SCRAM-SHA-*-PLUS is not actually advertised.
Diffstat (limited to 'util')
-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 37abf4a4..4606d1fd 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -240,7 +240,7 @@ local function init(registerMechanism)
-- register channel binding equivalent
registerMechanism("SCRAM-"..hash_name.."-PLUS",
{"plain", "scram_"..(hashprep(hash_name))},
- scram_gen(hash_name:lower(), hash, hmac_hash, get_auth_db, true), {"tls-unique"});
+ scram_gen(hash_name:lower(), hash, hmac_hash, get_auth_db, true), {"tls-unique", "tls-exporter"});
end
registerSCRAMMechanism("SHA-1", hashes.sha1, hashes.hmac_sha1, hashes.pbkdf2_hmac_sha1);