| 985 | } |
| 986 | |
| 987 | struct io_plan *initiator_handshake_(struct io_conn *conn, |
| 988 | const struct pubkey *my_id, |
| 989 | const struct pubkey *their_id, |
| 990 | const struct wireaddr_internal *addr, |
| 991 | struct oneshot *timeout, |
| 992 | struct io_plan *(*cb)(struct io_conn *, |
| 993 | const struct pubkey *, |
| 994 | const struct wireaddr_internal *, |
| 995 | struct crypto_state *, |
| 996 | struct oneshot *timeout, |
| 997 | void *cbarg), |
| 998 | void *cbarg) |
| 999 | { |
| 1000 | struct handshake *h = new_handshake(conn, their_id); |
| 1001 | |
| 1002 | h->side = INITIATOR; |
| 1003 | h->my_id = *my_id; |
| 1004 | h->their_id = *their_id; |
| 1005 | h->addr = *addr; |
| 1006 | h->cbarg = cbarg; |
| 1007 | h->cb = cb; |
| 1008 | h->timeout = timeout; |
| 1009 | |
| 1010 | return act_one_initiator(conn, h); |
| 1011 | } |
nothing calls this directly
no test coverage detected