Update crypto calls
This commit is contained in:
parent
a9a235c376
commit
dfe3082445
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue