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

Remove in mod_caps handle of unused md5 hash

This commit is contained in:
Badlop 2010-06-18 14:05:47 +02:00
parent 979c2b5a74
commit 6942d0bcc3

View File

@ -318,16 +318,11 @@ make_my_disco_hash(Host) ->
"" ""
end. end.
make_disco_hash(DiscoEls, Algo) when Algo == sha1; Algo == md5 -> make_disco_hash(DiscoEls, Algo) when Algo == sha1 ->
Concat = [concat_identities(DiscoEls), Concat = [concat_identities(DiscoEls),
concat_features(DiscoEls), concat_features(DiscoEls),
concat_info(DiscoEls)], concat_info(DiscoEls)],
base64:encode_to_string( base64:encode_to_string(crypto:sha(Concat)).
if Algo == sha1 ->
crypto:sha(Concat);
Algo == md5 ->
crypto:md5(Concat)
end).
concat_features(Els) -> concat_features(Els) ->
lists:usort( lists:usort(