Software / code / prosody
Comparison
util/sasl/scram.lua @ 5837:574e91531994
util.sasl.scram: Remove some debugging output.
| author | Tobias Markmann <tm@ayena.de> |
|---|---|
| date | Mon, 17 Jan 2011 16:50:21 +0100 |
| parent | 5836:fa8cfe830fef |
| child | 5839:a65b56348034 |
comparison
equal
deleted
inserted
replaced
| 5836:fa8cfe830fef | 5837:574e91531994 |
|---|---|
| 129 -- TODO: fail if authzid is provided, since we don't support them yet | 129 -- TODO: fail if authzid is provided, since we don't support them yet |
| 130 self.state["client_first_message"] = client_first_message; | 130 self.state["client_first_message"] = client_first_message; |
| 131 self.state["gs2_cbind_flag"], self.state["gs2_cbind_name"], self.state["authzid"], self.state["name"], self.state["clientnonce"] | 131 self.state["gs2_cbind_flag"], self.state["gs2_cbind_name"], self.state["authzid"], self.state["name"], self.state["clientnonce"] |
| 132 = client_first_message:match("^(%a)=?([%a%-]*),(.*),n=(.*),r=([^,]*).*"); | 132 = client_first_message:match("^(%a)=?([%a%-]*),(.*),n=(.*),r=([^,]*).*"); |
| 133 | 133 |
| 134 -- we don't do any channel binding yet | |
| 135 log("debug", "Decoded: cbind_flag: %s, cbind_name: %s, authzid: %s, name: %s, clientnonce: %s", tostring(self.state.gs2_cbind_flag), | |
| 136 tostring(self.state.gs2_cbind_name), | |
| 137 tostring(self.state.authzid), | |
| 138 tostring(self.state.name), | |
| 139 tostring(self.state.clientnonce)); | |
| 140 if support_channel_binding then | 134 if support_channel_binding then |
| 141 if string.sub(self.state.gs2_cbind_flag, 0, 1) == "y" then | 135 if string.sub(self.state.gs2_cbind_flag, 0, 1) == "y" then |
| 142 return "failure", "malformed-request"; | 136 return "failure", "malformed-request"; |
| 143 end | 137 end |
| 144 | 138 |