summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-03-31 09:49:10 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-07 13:18:13 +0200
commit90b855e1aa23886dbb4bd794e2527a26973dd5fb (patch)
tree2ffc437362634955d801bb0ca8442e611bbcb321 /src/plugins/relay/relay.c
parentfd3219246432b35f165c5d1edfa78c76a743723e (diff)
downloadweechat-90b855e1aa23886dbb4bd794e2527a26973dd5fb.zip
relay: add connection to remote (issue #2066)
Connection to remote: - handshake: offer support for all supported hash algorithms - network connect with a socket - upgrade to websocket and authenticate with remote (password/TOTP) - check websocket response - get list of buffers (not used yet) Note: connection to remote with TLS or a proxy is not yet supported.
Diffstat (limited to 'src/plugins/relay/relay.c')
-rw-r--r--src/plugins/relay/relay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c
index bf3188937..f643ec860 100644
--- a/src/plugins/relay/relay.c
+++ b/src/plugins/relay/relay.c
@@ -58,6 +58,8 @@ char *relay_status_name[] = /* name of status (for signal/info) */
{ "connecting", "waiting_auth",
"connected", "auth_failed", "disconnected"
};
+char *relay_msg_type_string[] = /* prefix in raw buffer for msg */
+{ "", "[PING]\n", "[PONG]\n", "[CLOSE]\n" };
struct t_hdata *relay_hdata_buffer = NULL;
struct t_hdata *relay_hdata_lines = NULL;