Files
lightning/lightningd
Rusty Russell 6b6b7eac61 hsmd: use status_conn to send bad_request messages, make handlers uniform.
The current code sends hsmstatus_client_bad_request via the req fd;
this won't work, since lightningd uses that synchronously and only
expects a reply to its commands.  So send it via status_conn.

We also enhance hsmstatus_client_bad_request to include details, and
create convenience functions for it.  Our previous handling was ad-hoc;
we sometimes just closed on the client without telling lightningd,
and sometimes we didn't tell lightningd *which* client was broken.

Also make every handler the exact same prototype, so they now use the
exact same patterns (hsmd *only* handles requests, makes replies).

I tested this manually by corrupting a request to hsmd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-09-20 09:49:39 +02:00
..
2017-10-20 18:31:32 +02:00
2018-09-03 00:40:27 +00:00
2018-09-03 00:40:27 +00:00
2018-09-03 00:40:27 +00:00
2018-07-29 16:27:38 +02:00
2018-09-03 05:01:40 +00:00
2018-08-20 01:02:25 +00:00
2018-09-14 22:12:13 +02:00
2018-08-20 01:02:25 +00:00
2018-09-04 14:36:05 +02:00
2018-05-05 17:55:10 +02:00
2018-09-03 00:40:27 +00:00
2018-07-30 03:04:45 +00:00
2018-09-03 00:40:27 +00:00
2018-02-16 13:08:29 +01:00