mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Remove in mod_caps handle of unused md5 hash
This commit is contained in:
parent
979c2b5a74
commit
6942d0bcc3
@ -318,16 +318,11 @@ make_my_disco_hash(Host) ->
|
||||
""
|
||||
end.
|
||||
|
||||
make_disco_hash(DiscoEls, Algo) when Algo == sha1; Algo == md5 ->
|
||||
make_disco_hash(DiscoEls, Algo) when Algo == sha1 ->
|
||||
Concat = [concat_identities(DiscoEls),
|
||||
concat_features(DiscoEls),
|
||||
concat_info(DiscoEls)],
|
||||
base64:encode_to_string(
|
||||
if Algo == sha1 ->
|
||||
crypto:sha(Concat);
|
||||
Algo == md5 ->
|
||||
crypto:md5(Concat)
|
||||
end).
|
||||
base64:encode_to_string(crypto:sha(Concat)).
|
||||
|
||||
concat_features(Els) ->
|
||||
lists:usort(
|
||||
|
Loading…
Reference in New Issue
Block a user