peer_status_t
static handshake_status_t handshake_status(peer_status_t last_status,
peer_status_t previous_status,
peer_status_t status;