From 65a09a09d6cc3e26be9488e69895154ab2ae14fd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 8 Jun 2014 17:18:46 +0200 Subject: Allow async verify for handshake responses This will lead to a bit strange handshake as a handshake response is answered with another handshake response, but it won't lead to loops because of the verification and handshake backoff intervals. --- src/protocols/ec25519_fhmqvc/handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index 75dd974..99f1829 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -592,7 +592,7 @@ static fastd_peer_t * add_temporary(fastd_socket_t *sock, const fastd_peer_addre /** Is called when a handshake from a temporary peer is received */ static bool handle_temporary(fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, const fastd_handshake_t *handshake, const fastd_method_info_t *method) { - if (handshake->type != 1 || !fastd_timed_out(&peer->verify_timeout)) + if (handshake->type > 2 || !fastd_timed_out(&peer->verify_timeout)) return !fastd_timed_out(&peer->verify_valid_timeout); verify_data_t verify_data; -- cgit v1.2.3