summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-websocket.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-03-01 18:02:39 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-03-01 21:24:27 +0100
commit9a6a27ef58982319549529d43906da60ce199aaf (patch)
tree71693d78f414b8e0cac15c6284df5c4ee6229a81 /src/plugins/relay/relay-websocket.c
parentc4ef3d6c2e5339d3b6ac2ba255d166a4d8984bce (diff)
downloadweechat-9a6a27ef58982319549529d43906da60ce199aaf.zip
core: move crypto functions to wee-crypto.c, rename API function string_hash to crypto_hash
Diffstat (limited to 'src/plugins/relay/relay-websocket.c')
-rw-r--r--src/plugins/relay/relay-websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-websocket.c b/src/plugins/relay/relay-websocket.c
index 29ffa240c..a55626b9c 100644
--- a/src/plugins/relay/relay-websocket.c
+++ b/src/plugins/relay/relay-websocket.c
@@ -207,7 +207,7 @@ relay_websocket_build_handshake (struct t_relay_client *client)
snprintf (key, length, "%s%s", sec_websocket_key, WEBSOCKET_GUID);
/* compute 160-bit SHA1 on the key and encode it with base64 */
- if (!weechat_string_hash (key, strlen (key), "sha1", hash, &length_hash))
+ if (!weechat_crypto_hash (key, strlen (key), "sha1", hash, &length_hash))
{
free (key);
return NULL;