Skip to content

Commit

Permalink
relay: add connection to remote (issue #2066)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
flashcode committed Apr 7, 2024
1 parent fd32192 commit 90b855e
Show file tree
Hide file tree
Showing 25 changed files with 2,685 additions and 1,017 deletions.
362 changes: 182 additions & 180 deletions doc/en/weechat_dev.en.adoc

Large diffs are not rendered by default.

362 changes: 182 additions & 180 deletions doc/fr/weechat_dev.fr.adoc

Large diffs are not rendered by default.

405 changes: 205 additions & 200 deletions doc/ja/weechat_dev.ja.adoc

Large diffs are not rendered by default.

364 changes: 184 additions & 180 deletions doc/sr/weechat_dev.sr.adoc

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions po/srcfiles.cmake
Expand Up @@ -350,6 +350,8 @@ SET(WEECHAT_SOURCES
./src/plugins/relay/api/relay-api-msg.h
./src/plugins/relay/api/relay-api-protocol.c
./src/plugins/relay/api/relay-api-protocol.h
./src/plugins/relay/api/remote/relay-remote-network.c
./src/plugins/relay/api/remote/relay-remote-network.h
./src/plugins/relay/irc/relay-irc.c
./src/plugins/relay/irc/relay-irc.h
./src/plugins/relay/relay-auth.c
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/relay/CMakeLists.txt
Expand Up @@ -49,6 +49,8 @@ if(ENABLE_CJSON)
api/relay-api.c api/relay-api.h
api/relay-api-msg.c api/relay-api-msg.h
api/relay-api-protocol.c api/relay-api-protocol.h
# API relay remote
api/remote/relay-remote-network.c api/remote/relay-remote-network.h
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/relay/api/relay-api-msg.c
Expand Up @@ -172,7 +172,7 @@ relay_api_msg_send_json_internal (struct t_relay_client *client,
string = cJSON_PrintUnformatted (json);
num_bytes = relay_client_send (
client,
RELAY_CLIENT_MSG_STANDARD,
RELAY_MSG_STANDARD,
string,
(string) ? strlen (string) : 0,
NULL); /* raw_message */
Expand Down

0 comments on commit 90b855e

Please sign in to comment.