From 86d83bd9bd69e2129f4e4e8397f1c7e223685e2f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 5 Jul 2011 21:29:31 +0200 Subject: [PATCH] Bump minor protocol to indicate ECDH capability for UDP session keys. --- src/protocol.h | 2 +- src/protocol_auth.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/protocol.h b/src/protocol.h index 7a7072e..212afaf 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -24,7 +24,7 @@ /* Protocol version. Different major versions are incompatible. */ #define PROT_MAJOR 17 -#define PROT_MINOR 0 +#define PROT_MINOR 1 /* Silly Windows */ diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 7aaef17..d98e5c4 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -462,6 +462,9 @@ bool ack_h(connection_t *c, char *request) { c->options &= ~OPTION_CLAMP_MSS; } + if(c->protocol_minor > 0) + c->node->status.ecdh = true; + /* Activate this connection */ c->allow_request = ALL; -- 2.25.1