25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix SCRAM auth of uppercase passwords (EJAB-1196)

This commit is contained in:
Badlop 2011-09-05 12:48:26 +02:00
parent 7ae7d6315f
commit da555fb908

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(jlib:resourceprep(Password), Salt, IterationCount).
client_key(SaltedPassword) ->
crypto:sha_mac(SaltedPassword, "Client Key").