Mercurial > prosody-modules
changeset 5069:e8342ae5ae12
mod_sasl2_fast: Improve backend profile name and correctly use it everywhere
It didn't match before, and the mechanisms didn't show up.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Oct 2022 16:21:01 +0100 |
parents | 20e635eb4cdc |
children | 5cc6f3749376 |
files | mod_sasl2_fast/mod_sasl2_fast.lua |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_sasl2_fast/mod_sasl2_fast.lua Fri Oct 14 15:44:00 2022 +0100 +++ b/mod_sasl2_fast/mod_sasl2_fast.lua Fri Oct 14 16:21:01 2022 +0100 @@ -62,7 +62,7 @@ function get_sasl_handler(username) local token_auth_profile = { - ht_256 = new_token_tester(username, hash.hmac_sha256); + ht_sha_256 = new_token_tester(username, hash.hmac_sha256); token_test = function (_, client_id, token, mech_name, counter) --luacheck: ignore return false; -- FIXME end; @@ -175,7 +175,7 @@ )); end -register_ht_mechanism("HT-SHA-256-NONE", "ht_sha256", nil); -register_ht_mechanism("HT-SHA-256-UNIQ", "ht_sha256", "tls-unique"); -register_ht_mechanism("HT-SHA-256-ENDP", "ht_sha256", "tls-endpoint"); -register_ht_mechanism("HT-SHA-256-EXPR", "ht_sha256", "tls-exporter"); +register_ht_mechanism("HT-SHA-256-NONE", "ht_sha_256", nil); +register_ht_mechanism("HT-SHA-256-UNIQ", "ht_sha_256", "tls-unique"); +register_ht_mechanism("HT-SHA-256-ENDP", "ht_sha_256", "tls-endpoint"); +register_ht_mechanism("HT-SHA-256-EXPR", "ht_sha_256", "tls-exporter");