mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
hsm: rename the hsmctl_hsmfd_ecdh_response to hsmctl_hsmfd_fd_response
We want to use it for other HSM fd requests. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -254,7 +254,7 @@ static u8 *pass_hsmfd_ecdh(struct io_conn *conn,
|
|||||||
io_new_conn(control, fds[0], ecdh_client, c);
|
io_new_conn(control, fds[0], ecdh_client, c);
|
||||||
|
|
||||||
*fd_to_pass = fds[1];
|
*fd_to_pass = fds[1];
|
||||||
return towire_hsmctl_hsmfd_ecdh_response(control);
|
return towire_hsmctl_hsmfd_fd_response(control);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct io_plan *control_received_req(struct io_conn *conn,
|
static struct io_plan *control_received_req(struct io_conn *conn,
|
||||||
@@ -281,7 +281,7 @@ static struct io_plan *control_received_req(struct io_conn *conn,
|
|||||||
return io_never(conn, control);
|
return io_never(conn, control);
|
||||||
|
|
||||||
case WIRE_HSMCTL_INIT_RESPONSE:
|
case WIRE_HSMCTL_INIT_RESPONSE:
|
||||||
case WIRE_HSMCTL_HSMFD_ECDH_RESPONSE:
|
case WIRE_HSMCTL_HSMFD_FD_RESPONSE:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ hsmctl_hsmfd_ecdh,3
|
|||||||
hsmctl_hsmfd_ecdh,0,unique_id,8
|
hsmctl_hsmfd_ecdh,0,unique_id,8
|
||||||
|
|
||||||
# No message, just an fd.
|
# No message, just an fd.
|
||||||
hsmctl_hsmfd_ecdh_response,103
|
hsmctl_hsmfd_fd_response,103
|
||||||
|
|
||||||
# Shutdown just results in an exit.
|
# Shutdown just results in an exit.
|
||||||
hsmctl_shutdown,4
|
hsmctl_shutdown,4
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ static void peer_got_hsmfd(struct subdaemon *hsm, const u8 *msg,
|
|||||||
{
|
{
|
||||||
const u8 *req;
|
const u8 *req;
|
||||||
|
|
||||||
if (!fromwire_hsmctl_hsmfd_ecdh_response(msg, NULL)) {
|
if (!fromwire_hsmctl_hsmfd_fd_response(msg, NULL)) {
|
||||||
log_unusual(peer->ld->log, "Malformed hsmfd response: %s",
|
log_unusual(peer->ld->log, "Malformed hsmfd response: %s",
|
||||||
tal_hex(peer, msg));
|
tal_hex(peer, msg));
|
||||||
goto error;
|
goto error;
|
||||||
|
|||||||
Reference in New Issue
Block a user