Comparison

util/sasl/scram.lua @ 3078:22c22f8a6eb8

util.sasl.scram: Split up long line.
author Tobias Markmann <tm@ayena.de>
date Sat, 22 May 2010 14:58:24 +0200
parent 3077:3ee311f21d54
child 3079:e144a4989e70
comparison
equal deleted inserted replaced
3077:3ee311f21d54 3078:22c22f8a6eb8
100 -- we are processing client_first_message 100 -- we are processing client_first_message
101 local client_first_message = message; 101 local client_first_message = message;
102 102
103 -- TODO: fail if authzid is provided, since we don't support them yet 103 -- TODO: fail if authzid is provided, since we don't support them yet
104 self.state["client_first_message"] = client_first_message; 104 self.state["client_first_message"] = client_first_message;
105 self.state["gs2_cbind_flag"], self.state["authzid"], self.state["name"], self.state["clientnonce"] = client_first_message:match("^(%a),(.*),n=(.*),r=([^,]*).*"); 105 self.state["gs2_cbind_flag"], self.state["authzid"], self.state["name"], self.state["clientnonce"]
106 = client_first_message:match("^(%a),(.*),n=(.*),r=([^,]*).*");
106 107
107 -- we don't do any channel binding yet 108 -- we don't do any channel binding yet
108 if self.state.gs2_cbind_flag ~= "n" and self.state.gs2_cbind_flag ~= "y" then 109 if self.state.gs2_cbind_flag ~= "n" and self.state.gs2_cbind_flag ~= "y" then
109 return "failure", "malformed-request"; 110 return "failure", "malformed-request";
110 end 111 end