Bump minor protocol to indicate ECDH capability for UDP session keys.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 5 Jul 2011 19:29:31 +0000 (21:29 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 5 Jul 2011 19:29:31 +0000 (21:29 +0200)
src/protocol.h
src/protocol_auth.c

index 7a7072e..212afaf 100644 (file)
@@ -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 */
 
index 7aaef17..d98e5c4 100644 (file)
@@ -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;