Software /
code /
prosody
Comparison
util/sasl/scram.lua @ 5829:40c16475194e
Check whether we support the proposed channel binding type.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sat, 15 Jan 2011 17:59:15 +0100 |
parent | 5828:24de22c01f8d |
child | 5833:b1fa865ee6b2 |
comparison
equal
deleted
inserted
replaced
5828:24de22c01f8d | 5829:40c16475194e |
---|---|
135 tostring(self.state.clientnonce)); | 135 tostring(self.state.clientnonce)); |
136 if support_channel_binding then | 136 if support_channel_binding then |
137 if string.sub(self.state.gs2_cbind_flag, 0, 1) == "y" then | 137 if string.sub(self.state.gs2_cbind_flag, 0, 1) == "y" then |
138 return "failure", "malformed-request"; | 138 return "failure", "malformed-request"; |
139 end | 139 end |
140 | |
141 -- check whether we support the proposed channel binding type | |
142 if not self.profile.cb[self.state.gs2_cbind_name] then | |
143 return "failure", "malformed-request", "Proposed channel binding type isn't supported."; | |
144 end | |
140 else | 145 else |
141 if self.state.gs2_cbind_flag ~= "n" and self.state.gs2_cbind_flag ~= "y" then | 146 if self.state.gs2_cbind_flag ~= "n" and self.state.gs2_cbind_flag ~= "y" then |
142 return "failure", "malformed-request"; | 147 return "failure", "malformed-request"; |
143 end | 148 end |
144 end | 149 end |