Make datagram SPTPS key exchange more robust.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Oct 2012 11:31:19 +0000 (13:31 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Oct 2012 11:31:19 +0000 (13:31 +0200)
commitbb6b97ce3493d49b79f1bd57fdac420c312ef8d6
tree9ee415aa5686889097c7471a872c45e2051f27f0
parentb99af2f813b897e1fd49c87a7cf44241cad3a017
Make datagram SPTPS key exchange more robust.

Similar to old style key exchange requests, keep track of whether a key
exchange is already in progress and how long it took. If no key is known yet
or if key exchange takes too long, (re)start a new key exchange.
src/graph.c
src/net_packet.c
src/node.h
src/protocol_key.c