| 340 | } |
| 341 | |
| 342 | static struct io_plan *handshake_failed_(struct io_conn *conn, |
| 343 | struct handshake *h, |
| 344 | const char *function, int line) |
| 345 | { |
| 346 | status_debug("%s: handshake failed %s:%u", |
| 347 | h->side == RESPONDER ? "Responder" : "Initiator", |
| 348 | function, line); |
| 349 | errno = EPROTO; |
| 350 | return io_close(conn); |
| 351 | } |
| 352 | #define handshake_failed(conn, h) \ |
| 353 | handshake_failed_((conn), (h), __func__, __LINE__) |
| 354 |
nothing calls this directly
no test coverage detected