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