connection_t: allocate legacy context on first use
authorKirill Isakov <bootctl@gmail.com>
Thu, 14 Apr 2022 15:44:49 +0000 (21:44 +0600)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 21 Apr 2022 18:34:57 +0000 (20:34 +0200)
commit8cb4dbb04af15e95e9a302670a4c6fd21e0ebfd6
treebaaf00b6843de66a08f5e861aa0448e6ed87841d
parent0289162552cd85375605044c696e2a3294e7aa9a
connection_t: allocate legacy context on first use

Since the new protocol is preferred if available, if both sides of the
connection are running modern versions of tinc, the old protocol may not
be used at all.
src/connection.c
src/connection.h
src/fsck.c
src/keys.c
src/keys.h
src/meta.c
src/net_setup.c
src/net_socket.c
src/protocol_auth.c