Software /
code /
prosody
Diff
util/sasl/scram.lua @ 3155:c713fa2ba80c
SASL: Minor cleanup.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 17:48:50 +0500 |
parent | 3154:104f05235cef |
child | 3196:d35b181a895a |
line wrap: on
line diff
--- a/util/sasl/scram.lua Thu Jun 03 17:47:51 2010 +0500 +++ b/util/sasl/scram.lua Thu Jun 03 17:48:50 2010 +0500 @@ -93,10 +93,8 @@ return username; end -local function hashprep( hashname ) - local hash = hashname:lower() - hash = hash:gsub("-", "_") - return hash +local function hashprep(hashname) + return hashname:lower():gsub("-", "_"); end function saltedPasswordSHA1(password, salt, iteration_count)