Sébastien Helleu
731871dd78
relay: remove commented variable
2024-04-14 19:13:47 +02:00
Sébastien Helleu
b7d07840d1
relay: add connection with proxy to remote
2024-04-14 19:12:35 +02:00
Sébastien Helleu
9defa13bbe
relay: remove commented code
2024-04-14 19:12:22 +02:00
Sébastien Helleu
984fdb2b58
relay: add TLS connection to remote, add remote option "tls_verify"
2024-04-14 19:00:05 +02:00
Sébastien Helleu
90998bd296
relay/api: fix reconnection to remote after disconnection
2024-04-10 21:58:11 +02:00
Sébastien Helleu
976e5e8ae4
relay/api: free hook_url_handshake when disconnecting from remote
2024-04-10 21:57:00 +02:00
Sébastien Helleu
f40f3cfa40
relay/api: add tags in lines displayed in remote buffers
2024-04-10 20:57:16 +02:00
Sébastien Helleu
5046a9b596
relay/api: fix decoding of large websocket frames in remote client ( closes #2107 )
2024-04-09 13:32:34 +02:00
Sébastien Helleu
dbf9068909
relay/api: read data on socket only if connected
2024-04-09 13:15:15 +02:00
Sébastien Helleu
e8081fe4f7
relay/api: free frames after use
2024-04-09 13:13:32 +02:00
Sébastien Helleu
5eaac71d25
relay/api: use function asprintf to build string with salt and password
2024-04-07 17:53:42 +02:00
Sébastien Helleu
fd5f42dc06
relay/api: fix authentication with remote using hash algorithm "sha256" or "sha512"
2024-04-07 17:29:35 +02:00
Sébastien Helleu
ec8c4cc042
relay/api: use function asprintf to build key and check websocket reply
2024-04-07 17:22:03 +02:00
Sébastien Helleu
ef12c93f1b
relay: improve messages displayed (issue #2066 )
2024-04-07 14:49:12 +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
64db1b958d
relay/api: replace direct access to JSON number value by call to function cJSON_GetNumberValue() (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
643adecff5
relay: add option send in command /remote (issue #2066 )
...
This can be used to send raw JSON data encapsulated in a websocket frame to the
remote.
Example: /remote send test {"request":"GET /api/version"}
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