Update crypto calls

This commit is contained in:
Alexey Shchepin 2015-07-30 18:47:15 +03:00
parent a9a235c376
commit dfe3082445
1 changed files with 2 additions and 2 deletions

View File

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