Software /
code /
prosody-modules
Comparison
mod_sasl2_fast/mod_sasl2_fast.lua @ 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 |
parent | 5068:20e635eb4cdc |
child | 5070:5cc6f3749376 |
comparison
equal
deleted
inserted
replaced
5068:20e635eb4cdc | 5069:e8342ae5ae12 |
---|---|
60 end | 60 end |
61 end | 61 end |
62 | 62 |
63 function get_sasl_handler(username) | 63 function get_sasl_handler(username) |
64 local token_auth_profile = { | 64 local token_auth_profile = { |
65 ht_256 = new_token_tester(username, hash.hmac_sha256); | 65 ht_sha_256 = new_token_tester(username, hash.hmac_sha256); |
66 token_test = function (_, client_id, token, mech_name, counter) --luacheck: ignore | 66 token_test = function (_, client_id, token, mech_name, counter) --luacheck: ignore |
67 return false; -- FIXME | 67 return false; -- FIXME |
68 end; | 68 end; |
69 }; | 69 }; |
70 return sasl.new(module.host, token_auth_profile); | 70 return sasl.new(module.host, token_auth_profile); |
173 backend_profile_name, | 173 backend_profile_name, |
174 cb_name | 174 cb_name |
175 )); | 175 )); |
176 end | 176 end |
177 | 177 |
178 register_ht_mechanism("HT-SHA-256-NONE", "ht_sha256", nil); | 178 register_ht_mechanism("HT-SHA-256-NONE", "ht_sha_256", nil); |
179 register_ht_mechanism("HT-SHA-256-UNIQ", "ht_sha256", "tls-unique"); | 179 register_ht_mechanism("HT-SHA-256-UNIQ", "ht_sha_256", "tls-unique"); |
180 register_ht_mechanism("HT-SHA-256-ENDP", "ht_sha256", "tls-endpoint"); | 180 register_ht_mechanism("HT-SHA-256-ENDP", "ht_sha_256", "tls-endpoint"); |
181 register_ht_mechanism("HT-SHA-256-EXPR", "ht_sha256", "tls-exporter"); | 181 register_ht_mechanism("HT-SHA-256-EXPR", "ht_sha_256", "tls-exporter"); |