24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-05-31 21:07:55 +02:00

Update crypto calls

This commit is contained in:
Alexey Shchepin 2015-07-30 18:47:15 +03:00
parent a9a235c376
commit dfe3082445

View File

@ -467,8 +467,8 @@ presence(Config) ->
presence_broadcast(Config) -> presence_broadcast(Config) ->
Feature = <<"p1:tmp:", (randoms:get_string())/binary>>, Feature = <<"p1:tmp:", (randoms:get_string())/binary>>,
Ver = crypto:sha(["client", $/, "bot", $/, "en", $/, Ver = crypto:hash(sha, ["client", $/, "bot", $/, "en", $/,
"ejabberd_ct", $<, Feature, $<]), "ejabberd_ct", $<, Feature, $<]),
B64Ver = base64:encode(Ver), B64Ver = base64:encode(Ver),
Node = <<(?EJABBERD_CT_URI)/binary, $#, B64Ver/binary>>, Node = <<(?EJABBERD_CT_URI)/binary, $#, B64Ver/binary>>,
Server = ?config(server, Config), Server = ?config(server, Config),