From a87b47536143d706e84d9bcb792832b1986f6493 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 5 Nov 2013 20:05:12 +1000 Subject: Do not use functions from crypto module wherever possible --- src/mod_caps.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mod_caps.erl') 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); -- cgit v1.2.3