diff options
author | Badlop <badlop@process-one.net> | 2011-09-05 13:04:26 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2011-09-05 13:04:26 +0200 |
commit | fed00a0c1761f12ea96217dcdbb40b114221dd07 (patch) | |
tree | 82251f7f47b3453c71de7814557683cb9a7c3c04 /src | |
parent | Replace calls of OTP's Binary, since they would require R14 (diff) |
Fix SCRAM auth of uppercase passwords (EJAB-1196)
Diffstat (limited to 'src')
-rw-r--r-- | src/scram.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scram.erl b/src/scram.erl index dc1490189..490f98a7e 100644 --- a/src/scram.erl +++ b/src/scram.erl @@ -37,8 +37,9 @@ client_key/2 ]). +%% ejabberd doesn't implement SASLPREP, so we use the similar RESOURCEPREP instead salted_password(Password, Salt, IterationCount) -> - hi(jlib:nameprep(Password), Salt, IterationCount). + hi(exmpp_stringprep:resourceprep(Password), Salt, IterationCount). client_key(SaltedPassword) -> crypto:sha_mac(SaltedPassword, "Client Key"). |