diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-10 02:26:43 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-10 02:26:43 +0100 |
commit | 1127f01f91f96f17ad983be39fb7c41c0a0addcd (patch) | |
tree | 3460967ead7313aa1f15014f1511769c8ffcf952 /util | |
parent | 825d03cc43430af857fa063094e87644771fa149 (diff) | |
download | prosody-1127f01f91f96f17ad983be39fb7c41c0a0addcd.tar.gz prosody-1127f01f91f96f17ad983be39fb7c41c0a0addcd.zip |
util.sasl: Convert spaces to tabs
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 3fd133d2..0082b9cc 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -33,7 +33,7 @@ module "sasl" 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 @@ local function new_digest_md5(realm, password_handler) 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; |