| 654 | } |
| 655 | |
| 656 | u8 *hsmd_status_bad_request(struct hsmd_client *client, const u8 *msg, const char *error) |
| 657 | { |
| 658 | /* Extract the pointer to the hsmd representation of the |
| 659 | * client which has access to the underlying connection. */ |
| 660 | struct client *c = (struct client*)client->extra; |
| 661 | bad_req_fmt(c->conn, c, msg, "%s", error); |
| 662 | |
| 663 | /* We often use `return hsmd_status_bad_request` to drop out, and NULL |
| 664 | * means we encountered an error. */ |
| 665 | return NULL; |
| 666 | } |
| 667 | |
| 668 | void hsmd_status_fmt(enum log_level level, const struct node_id *peer, |
| 669 | const char *fmt, ...) |
no test coverage detected