aboutsummaryrefslogtreecommitdiff
path: root/src/mod_caps.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2013-11-05 20:05:12 +1000
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2013-11-05 20:07:38 +1000
commita87b47536143d706e84d9bcb792832b1986f6493 (patch)
tree6d20a26435a62f70a33455868e2e11589eb410c4 /src/mod_caps.erl
parentFix some type errors (diff)
Do not use functions from crypto module wherever possible
Diffstat (limited to 'src/mod_caps.erl')
-rw-r--r--src/mod_caps.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_caps.erl b/src/mod_caps.erl
index 513eaa450..ac115d646 100644
--- a/src/mod_caps.erl
+++ b/src/mod_caps.erl
@@ -467,8 +467,8 @@ make_disco_hash(DiscoEls, Algo) ->
Concat = list_to_binary([concat_identities(DiscoEls),
concat_features(DiscoEls), concat_info(DiscoEls)]),
jlib:encode_base64(case Algo of
- md5 -> crypto:md5(Concat);
- sha1 -> crypto:sha(Concat);
+ md5 -> erlang:md5(Concat);
+ sha1 -> p1_sha:sha1(Concat);
sha224 -> p1_sha:sha224(Concat);
sha256 -> p1_sha:sha256(Concat);
sha384 -> p1_sha:sha384(Concat);