# HG changeset patch # User Matthew Wild # Date 1665861985 -3600 # Node ID e900bbd2e70d07250f7a97eb7b158f038e289152 # Parent eb46abc65dfd423f9e2343fcc0d29bbb54d3beec mod_sasl2_fast: Remove X-TOKEN-PLAIN and related profile handler diff -r eb46abc65dfd -r e900bbd2e70d mod_sasl2_fast/mod_sasl2_fast.lua --- a/mod_sasl2_fast/mod_sasl2_fast.lua Sat Oct 15 19:49:13 2022 +0100 +++ b/mod_sasl2_fast/mod_sasl2_fast.lua Sat Oct 15 20:26:25 2022 +0100 @@ -72,9 +72,6 @@ function get_sasl_handler() local token_auth_profile = { ht_sha_256 = new_token_tester(hash.hmac_sha256); - token_test = function (_, client_id, token, mech_name, counter) --luacheck: ignore - return false; -- FIXME - end; }; return sasl.new(module.host, token_auth_profile); end @@ -153,19 +150,6 @@ end end, 75); - --- X-PLAIN-TOKEN mechanism - -local function x_plain_token(self, message) --luacheck: ignore 212/self - if not message then - return nil, "malformed-request"; - end - return nil, "temporary-auth-failure"; -- FIXME -end - -sasl.registerMechanism("X-PLAIN-TOKEN", { "token_test" }, x_plain_token); - - -- HT-* mechanisms local function new_ht_mechanism(mechanism_name, backend_profile_name, cb_name)