Changeset

5833:b1fa865ee6b2

util.sasl.scram: Use self.profile.cb for detection whether channel binding is supported or not.
author Tobias Markmann <tm@ayena.de>
date Mon, 17 Jan 2011 16:50:21 +0100
parents 5832:7d100d917243
children 5834:c0cc4e73d9fa
files util/sasl/scram.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/util/sasl/scram.lua	Mon Jan 17 16:50:21 2011 +0100
+++ b/util/sasl/scram.lua	Mon Jan 17 16:50:21 2011 +0100
@@ -111,12 +111,12 @@
 	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