Fix SCRAM auth of uppercase passwords (EJAB-1196)

This commit is contained in:
Badlop 2011-09-05 13:04:26 +02:00
parent 4fcff0b6b9
commit fed00a0c17
1 changed files with 2 additions and 1 deletions

View File

@ -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").