summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-websocket.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-11-04 00:30:57 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-11-04 14:49:11 +0100
commited3f281ba9302d58644771082467983328643ff7 (patch)
tree48d1878ccf266cb3275e26bdbe7d51bab7c75c43 /src/plugins/relay/relay-websocket.c
parenta8b6fa08b743066693fe1da02985d0f5422b7d36 (diff)
downloadweechat-ed3f281ba9302d58644771082467983328643ff7.zip
api: add functions string_base_{encode,decode}, remove functions string_{encode,decode}_base64
Diffstat (limited to 'src/plugins/relay/relay-websocket.c')
-rw-r--r--src/plugins/relay/relay-websocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-websocket.c b/src/plugins/relay/relay-websocket.c
index 60c4f4526..c0398061e 100644
--- a/src/plugins/relay/relay-websocket.c
+++ b/src/plugins/relay/relay-websocket.c
@@ -214,8 +214,8 @@ relay_websocket_build_handshake (struct t_relay_client *client)
length = gcry_md_get_algo_dlen (GCRY_MD_SHA1);
gcry_md_write (hd, key, strlen (key));
result = gcry_md_read (hd, GCRY_MD_SHA1);
- if (weechat_string_encode_base64 ((char *)result, length,
- sec_websocket_accept) < 0)
+ if (weechat_string_base_encode (64, (char *)result, length,
+ sec_websocket_accept) < 0)
{
sec_websocket_accept[0] = '\0';
}