util.sasl: Convert spaces to tabs

Fri, 10 Jul 2009 02:26:43 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 10 Jul 2009 02:26:43 +0100
changeset 1518
9707dfa80980
parent 1517
22be7637a64d
child 1519
2c9a650ff1b7

util.sasl: Convert spaces to tabs

util/sasl.lua file | annotate | diff | comparison | revisions
--- a/util/sasl.lua	Fri Jul 10 02:25:14 2009 +0100
+++ b/util/sasl.lua	Fri Jul 10 02:26:43 2009 +0100
@@ -33,7 +33,7 @@
 local function new_plain(realm, password_handler)
 	local object = { mechanism = "PLAIN", realm = realm, password_handler = password_handler}
 	function object.feed(self, message)
-        
+	
 		if message == "" or message == nil then return "failure", "malformed-request" end
 		local response = message
 		local authorization = s_match(response, "([^&%z]+)")
@@ -229,7 +229,7 @@
 				
 				HA1 = md5(A1, true);
 				HA2 = md5(A2, true);
-        
+				
 				KD = HA1..":"..response["nonce"]..":"..response["nc"]..":"..response["cnonce"]..":"..response["qop"]..":"..HA2
 				local rspauth = md5(KD, true);
 				self.authenticated = true;

mercurial