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:
parent
0246939ce1
commit
e012e752f4
4 changed files with 23 additions and 25 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue