Fix initialisation of packet decryption context broken by commit 3308d13e7e3bf20cfeaf...
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 24 May 2009 17:31:31 +0000 (19:31 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 24 May 2009 17:31:31 +0000 (19:31 +0200)
Instead of a single, global decryption context, each node has its own context.
However, in send_ans_key(), the global context was initialised. This commit
fixes that and removes the global context completely.

Also only set status.validkey after all checks have been evaluated.


No differences found