Sébastien Helleu
14beee8a91
relay/api: rename field "nicks" to "nicklist" in GET /api/buffers
2024-04-07 13:18:14 +02:00
Sébastien Helleu
7c2f44e74e
relay/api: add nicklist group and nick id in response to GET /api/buffers (issue #2081 )
2024-04-07 13:18:14 +02:00
Sébastien Helleu
a499b50b7b
relay: add synchronization with remote and handler for events received (issue #2066 )
2024-04-07 13:18:14 +02:00
Sébastien Helleu
cb785d5035
relay/api: add "request" and "request_body" in response when connected via websocket (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
4460f92727
relay: stop URL address before the first question mark if colon is not found (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
f507be4128
tests: add tests on relay remote functions (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
90b855e1aa
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.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
c2343ecb74
relay: add functions to parse HTTP response (issue #2066 )
2024-04-07 13:16:50 +02:00
Sébastien Helleu
786f889251
relay: add command /remote, add remote configuration in relay.conf (issue #2066 )
2024-04-07 13:16:47 +02:00
Sébastien Helleu
34a72ac02e
relay/api: add GET /api/hotlist
2024-03-17 20:13:19 +01:00
Sébastien Helleu
1f47e7c4f8
tests: add missing include of string.h in relay API protocol tests
2024-03-17 10:47:46 +01:00
Sébastien Helleu
24c4029c96
core: remove "wee-" prefix from source files in src/core and src/core/hook
2024-03-12 21:27:37 +01:00
Sébastien Helleu
48ca390f79
relay/api: add support of buffer id in POST /api/input (issue #2081 )
2024-03-12 20:37:51 +01:00
Sébastien Helleu
aa989767a1
relay/api: add support of buffer id in GET /api/buffers (issue #2081 )
2024-03-12 20:37:50 +01:00
Sébastien Helleu
7ad3c1979c
tests/relay/api: add buffer id in test of buffer to json function (issue #2081 )
2024-03-12 20:37:48 +01:00
Sébastien Helleu
99f0a2e002
tests/relay/api: add tests on API protocol
2024-03-12 20:37:48 +01:00
Sébastien Helleu
6325add517
tests/relay/irc: use port 9001 for server relay
2024-03-12 20:37:48 +01:00
Sébastien Helleu
80709292d4
tests/relay/irc: fix comments
2024-03-12 20:37:48 +01:00
Sébastien Helleu
f2f6afb59c
tests/relay/irc: remove unused calls to record functions
2024-03-12 20:37:48 +01:00
Sébastien Helleu
f19808cedd
tests: add tests on "api" relay (general functions and messages)
2024-02-18 23:42:22 +01:00
Sébastien Helleu
0f30a4e020
relay: move functions to get URL parameters from api to relay-http.c, add tests
2024-02-18 23:13:20 +01:00
Sébastien Helleu
9b9b36bb02
tests: fix free of HTTP request
2024-02-18 23:12:56 +01:00
Sébastien Helleu
89aeb03a13
relay: remove request from some function arguments (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
83567fd871
relay: allow password hash authentication in api relay, add option relay.network.time_window (issue #2066 )
2024-02-01 21:39:23 +01:00
Sébastien Helleu
6cfb31c306
relay: add support of websocket extension "permessage-deflate" ( closes #1549 )
...
This extension is used to compress and decompress websocket frames (using
the DEFLATE algorithm, with zlib).
2024-02-01 21:38:53 +01:00
Sébastien Helleu
8971fc069a
relay: add "api" protocol (HTTP REST API) (issue #2066 )
2024-02-01 21:38:49 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
bc08d9a2b3
tests: rename tests
2023-12-02 13:32:15 +01:00
Sébastien Helleu
c6b18e9654
relay: fix display of IRC CTCP messages received from client (issue #1986 )
2023-08-08 09:38:54 +02:00
Sébastien Helleu
930b42aecf
tests/relay: fix crash in tests on Alpine 3.18
2023-07-01 09:43:56 +02:00
Sébastien Helleu
ab9b8e0b01
tests: fix checks on integers in relay irc protocol tests
2023-06-05 19:04:05 +02:00
Sébastien Helleu
498aa3256f
relay: add support of capability "echo-message" ( closes #1949 )
2023-06-03 14:15:55 +02:00
Sébastien Helleu
911c976f9b
tests: add tests on relay "irc" protocol
2023-06-02 18:50:45 +02:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
c44b79dce7
core: update copyright dates
2022-01-17 18:41:06 +01:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
60b75f4677
tests: add tests on functions relay_auth_password_hash_algo_search and relay_auth_generate_nonce
2020-04-20 07:16:08 +02:00
Sébastien Helleu
d38701f99f
tests: reduce number of iterations in PBKDF2 tests from 100000 to 1000
...
This speeds up tests by about 30%.
2020-04-19 10:56:25 +02:00
Sébastien Helleu
bfe22fc66a
tests: remove obsolete file test-relay-weechat-protocol.cpp
2020-04-19 10:56:11 +02:00
Sébastien Helleu
9fa3609c85
relay: add command "handshake" in weechat relay protocol and nonce to prevent replay attacks ( closes #1474 )
...
This introduces a new command called "handshake" in the weechat relay protocol.
It should be sent by the client before the "init" command, to negotiate the way
to authenticate with a password.
3 new options are added:
* relay.network.auth_password
* relay.network.hash_iterations
* relay.network.nonce_size
2020-04-14 21:38:12 +02:00
Sébastien Helleu
2d2b49bfaa
relay: accept hash of password in init command with option "password_hash"
...
Allowed algorithms are:
* PBKDF2 (SHA256 or SHA512, salt, iterations)
* SHA256
* SHA512
2020-03-02 00:46:10 +01:00