summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-06-08 17:18:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-06-08 17:40:57 +0200
commit65a09a09d6cc3e26be9488e69895154ab2ae14fd (patch)
tree5f232ac7639698851869517aa4e1d9a7ff004b48
parent65fc11a49ec939261ca9a3dbfa534a9c3354825e (diff)
downloadfastd-65a09a09d6cc3e26be9488e69895154ab2ae14fd.tar
fastd-65a09a09d6cc3e26be9488e69895154ab2ae14fd.zip
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.
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c2
1 files changed, 1 insertions, 1 deletions
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;