25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

crypto:hmac is removed in Erlang/OTP 24, use our wrapper

This commit is contained in:
Badlop 2021-03-04 16:04:33 +01:00
parent c45b526ec3
commit 3c248745e5

View File

@ -184,7 +184,7 @@ single_test(T) ->
check_password(Username, Password) -> check_password(Username, Password) ->
Secret = <<"cryptic">>, Secret = <<"cryptic">>,
Password == base64:encode(crypto:hmac(sha, Secret, Username)). Password == base64:encode(misc:crypto_hmac(sha, Secret, Username)).
check_expires({_, _, _} = Expires) -> check_expires({_, _, _} = Expires) ->
Now = {MegaSecs, Secs, MicroSecs} = erlang:timestamp(), Now = {MegaSecs, Secs, MicroSecs} = erlang:timestamp(),