comparison mod_sasl2_fast/mod_sasl2_fast.lua @ 5075:ba2f1292d5fe

mod_sasl2_fast: Register HT-* mechanisms with the required channel binding
author Matthew Wild <mwild1@gmail.com>
date Sat, 15 Oct 2022 19:47:05 +0100
parents 1726050e9a4b
children eb46abc65dfd
comparison
equal deleted inserted replaced
5074:1726050e9a4b 5075:ba2f1292d5fe
183 local function register_ht_mechanism(name, backend_profile_name, cb_name) 183 local function register_ht_mechanism(name, backend_profile_name, cb_name)
184 return sasl.registerMechanism(name, { backend_profile_name }, new_ht_mechanism( 184 return sasl.registerMechanism(name, { backend_profile_name }, new_ht_mechanism(
185 name, 185 name,
186 backend_profile_name, 186 backend_profile_name,
187 cb_name 187 cb_name
188 )); 188 ),
189 { cb_name });
189 end 190 end
190 191
191 register_ht_mechanism("HT-SHA-256-NONE", "ht_sha_256", nil); 192 register_ht_mechanism("HT-SHA-256-NONE", "ht_sha_256", nil);
192 register_ht_mechanism("HT-SHA-256-UNIQ", "ht_sha_256", "tls-unique"); 193 register_ht_mechanism("HT-SHA-256-UNIQ", "ht_sha_256", "tls-unique");
193 register_ht_mechanism("HT-SHA-256-ENDP", "ht_sha_256", "tls-endpoint"); 194 register_ht_mechanism("HT-SHA-256-ENDP", "ht_sha_256", "tls-endpoint");