Comparison

util/sasl/scram.lua @ 10499:79c568d4146c

util.sasl.scram: Ignore unused authzid variable (strict lint) It would be nice if authzid was passed down into the stack and could be used by plugins for things.
author Kim Alvefur <zash@zash.se>
date Mon, 09 Dec 2019 16:39:48 +0100
parent 10306:c0a94419c28e
child 10774:207691ad98fe
comparison
equal deleted inserted replaced
10498:d302fc749464 10499:79c568d4146c
123 if not state then 123 if not state then
124 -- we are processing client_first_message 124 -- we are processing client_first_message
125 local client_first_message = message; 125 local client_first_message = message;
126 126
127 -- TODO: fail if authzid is provided, since we don't support them yet 127 -- TODO: fail if authzid is provided, since we don't support them yet
128 -- luacheck: ignore 211/authzid
128 local gs2_header, gs2_cbind_flag, gs2_cbind_name, authzid, client_first_message_bare, username, clientnonce 129 local gs2_header, gs2_cbind_flag, gs2_cbind_name, authzid, client_first_message_bare, username, clientnonce
129 = s_match(client_first_message, "^(([pny])=?([^,]*),([^,]*),)(m?=?[^,]*,?n=([^,]*),r=([^,]*),?.*)$"); 130 = s_match(client_first_message, "^(([pny])=?([^,]*),([^,]*),)(m?=?[^,]*,?n=([^,]*),r=([^,]*),?.*)$");
130 131
131 if not gs2_cbind_flag then 132 if not gs2_cbind_flag then
132 return "failure", "malformed-request"; 133 return "failure", "malformed-request";