aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/scram.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2011-01-17 16:50:21 +0100
committerTobias Markmann <tm@ayena.de>2011-01-17 16:50:21 +0100
commite7a197972565c5a0e3f1fa538c693f115ebdb7e8 (patch)
tree6c55ef0a80e14896e9d7a20e2265274ddaf8b3aa /util/sasl/scram.lua
parent3dc5c26703b55ae5a24ba7757e18282e351425fd (diff)
downloadprosody-e7a197972565c5a0e3f1fa538c693f115ebdb7e8.tar.gz
prosody-e7a197972565c5a0e3f1fa538c693f115ebdb7e8.zip
util.sasl.scram: Use self.profile.cb for detection whether channel binding is supported or not.
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r--util/sasl/scram.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 76e9c152..cb50390d 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -111,12 +111,12 @@ function getAuthenticationDatabaseSHA1(password, salt, iteration_count)
return true, stored_key, server_key
end
-local support_channel_binding = true;
-
local function scram_gen(hash_name, H_f, HMAC_f)
local function scram_hash(self, message)
if not self.state then self["state"] = {} end
-
+ local support_channel_binding = false;
+ if self.profile.cb then support_channel_binding = true; end
+
if type(message) ~= "string" or #message == 0 then return "failure", "malformed-request" end
if not self.state.name then
-- we are processing client_first_message