diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-11-05 20:05:12 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2013-11-05 20:07:38 +1000 |
commit | a87b47536143d706e84d9bcb792832b1986f6493 (patch) | |
tree | 6d20a26435a62f70a33455868e2e11589eb410c4 /src/mod_caps.erl | |
parent | Fix 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.erl | 4 |
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); |