connectd: do decryption for peers.

We temporarily hack to sync_crypto_write/sync_crypto_read functions to
not do any crypto, and do it all in connectd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-01-08 23:52:29 +10:30
parent 71f736678f
commit a2b3d335bb
5 changed files with 95 additions and 93 deletions

View File

@@ -27,7 +27,7 @@ struct io_plan *io_read_wire_(struct io_conn *conn,
/* Write message from data (tal_count(data) gives length). data can be take() */
struct io_plan *io_write_wire_(struct io_conn *conn,
const u8 *data,
const u8 *data TAKES,
struct io_plan *(*next)(struct io_conn *, void *),
void *next_arg);