Software /
code /
prosody
Comparison
util/sasl/scram.lua @ 3154:104f05235cef
util.sasl.scram: Fixed a log level.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 17:47:51 +0500 |
parent | 3124:21e60658767d |
child | 3155:c713fa2ba80c |
comparison
equal
deleted
inserted
replaced
3153:fd435cab928f | 3154:104f05235cef |
---|---|
103 local salted_password | 103 local salted_password |
104 if type(password) ~= "string" or type(salt) ~= "string" or type(iteration_count) ~= "number" then | 104 if type(password) ~= "string" or type(salt) ~= "string" or type(iteration_count) ~= "number" then |
105 return false, "inappropriate argument types" | 105 return false, "inappropriate argument types" |
106 end | 106 end |
107 if iteration_count < 4096 then | 107 if iteration_count < 4096 then |
108 log("warning", "Iteration count < 4096 which is the suggested minimum according to RFC 5802.") | 108 log("warn", "Iteration count < 4096 which is the suggested minimum according to RFC 5802.") |
109 end | 109 end |
110 | 110 |
111 return true, Hi(hmac_sha1, password, salt, iteration_count); | 111 return true, Hi(hmac_sha1, password, salt, iteration_count); |
112 end | 112 end |
113 | 113 |