Fix initialisation of packet decryption context broken by commit 3308d13e7e.

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.
This commit is contained in:
Guus Sliepen 2009-05-24 19:31:31 +02:00
parent 0246939ce1
commit e012e752f4
4 changed files with 23 additions and 25 deletions

View file

@ -116,7 +116,6 @@ extern bool do_prune;
extern bool do_purge;
extern char *myport;
extern time_t now;
extern EVP_CIPHER_CTX packet_ctx;
/* Yes, very strange placement indeed, but otherwise the typedefs get all tangled up */
#include "connection.h"