| 961 | } |
| 962 | |
| 963 | struct io_plan *responder_handshake_(struct io_conn *conn, |
| 964 | const struct pubkey *my_id, |
| 965 | const struct wireaddr_internal *addr, |
| 966 | struct oneshot *timeout, |
| 967 | struct io_plan *(*cb)(struct io_conn *, |
| 968 | const struct pubkey *, |
| 969 | const struct wireaddr_internal *, |
| 970 | struct crypto_state *, |
| 971 | struct oneshot *, |
| 972 | void *cbarg), |
| 973 | void *cbarg) |
| 974 | { |
| 975 | struct handshake *h = new_handshake(conn, my_id); |
| 976 | |
| 977 | h->side = RESPONDER; |
| 978 | h->my_id = *my_id; |
| 979 | h->addr = *addr; |
| 980 | h->cbarg = cbarg; |
| 981 | h->cb = cb; |
| 982 | h->timeout = timeout; |
| 983 | |
| 984 | return act_one_responder(conn, h); |
| 985 | } |
| 986 | |
| 987 | struct io_plan *initiator_handshake_(struct io_conn *conn, |
| 988 | const struct pubkey *my_id, |
nothing calls this directly
no test coverage detected