projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused global variables.
[tinc]
/
src
/
protocol_key.c
diff --git
a/src/protocol_key.c
b/src/protocol_key.c
index
a9d719b
..
77b829b
100644
(file)
--- a/
src/protocol_key.c
+++ b/
src/protocol_key.c
@@
-27,16
+27,10
@@
#include "net.h"
#include "netutl.h"
#include "node.h"
#include "net.h"
#include "netutl.h"
#include "node.h"
-#include "prf.h"
#include "protocol.h"
#include "route.h"
#include "sptps.h"
#include "utils.h"
#include "protocol.h"
#include "route.h"
#include "sptps.h"
#include "utils.h"
-#include "xalloc.h"
-
-#ifndef DISABLE_LEGACY
-static bool mykeyused = false;
-#endif
void send_key_changed(void) {
#ifndef DISABLE_LEGACY
void send_key_changed(void) {
#ifndef DISABLE_LEGACY
@@
-377,7
+371,6
@@
bool send_ans_key(node_t *to) {
bin2hex(key, key, keylen);
// Reset sequence number and late packet window
bin2hex(key, key, keylen);
// Reset sequence number and late packet window
- mykeyused = true;
to->received_seqno = 0;
to->received = 0;
to->received_seqno = 0;
to->received = 0;