diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-01 18:02:39 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-01 21:24:27 +0100 |
commit | 9a6a27ef58982319549529d43906da60ce199aaf (patch) | |
tree | 71693d78f414b8e0cac15c6284df5c4ee6229a81 /src/plugins/relay/relay-websocket.c | |
parent | c4ef3d6c2e5339d3b6ac2ba255d166a4d8984bce (diff) | |
download | weechat-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.c | 2 |
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; |