From: Guus Sliepen Date: Tue, 5 Jul 2011 19:29:31 +0000 (+0200) Subject: Bump minor protocol to indicate ECDH capability for UDP session keys. X-Git-Tag: release-1.1pre2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86d83bd9bd69e2129f4e4e8397f1c7e223685e2f;p=oweals%2Ftinc.git Bump minor protocol to indicate ECDH capability for UDP session keys. --- 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;