aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-05-14 18:55:39 +0200
committerIngela Anderton Andin <[email protected]>2013-05-20 08:41:52 +0200
commit2f46744041f9d86a3e9205ce3d0b64cedcb64f71 (patch)
treeda0e4d355b326099eeea57932c4b7a4e6a4f6f4d /lib/ssl/test
parent94df68b49da66fff2f49735484c36ae6af90b886 (diff)
downloadotp-2f46744041f9d86a3e9205ce3d0b64cedcb64f71.tar.gz
otp-2f46744041f9d86a3e9205ce3d0b64cedcb64f71.tar.bz2
otp-2f46744041f9d86a3e9205ce3d0b64cedcb64f71.zip
ssl: Remove use of deprecated crypto functions
Diffstat (limited to 'lib/ssl/test')
-rw-r--r--lib/ssl/test/ssl_test_lib.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl
index a8ff5187b6..ac7cbab883 100644
--- a/lib/ssl/test/ssl_test_lib.erl
+++ b/lib/ssl/test/ssl_test_lib.erl
@@ -285,7 +285,7 @@ user_lookup(psk, _Identity, UserState) ->
{ok, UserState};
user_lookup(srp, Username, _UserState) ->
Salt = ssl:random_bytes(16),
- UserPassHash = crypto:sha([Salt, crypto:sha([Username, <<$:>>, <<"secret">>])]),
+ UserPassHash = crypto:hash(sha, [Salt, crypto:hash(sha, [Username, <<$:>>, <<"secret">>])]),
{ok, {srp_1024, Salt, UserPassHash}}.
cert_options(Config) ->