summaryrefslogtreecommitdiffhomepage
path: root/src/cookie.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cookie.h')
-rw-r--r--src/cookie.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/cookie.h b/src/cookie.h
index b9524e6..5e83bf0 100644
--- a/src/cookie.h
+++ b/src/cookie.h
@@ -1,19 +1,14 @@
/* Copyright 2015-2016 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
-#ifndef WGCOOKIE
-#define WGCOOKIE
+#ifndef WGCOOKIE_H
+#define WGCOOKIE_H
-#include "noise.h"
-#include "peer.h"
+#include "messages.h"
#include "ratelimiter.h"
#include <linux/rwsem.h>
-enum {
- COOKIE_SECRET_MAX_AGE = 2 * 60 * HZ,
- COOKIE_SECRET_LATENCY = 5 * HZ,
- COOKIE_SALT_LEN = 32,
- COOKIE_LEN = 16
-};
+struct wireguard_peer;
+struct wireguard_device;
struct wireguard_device;
struct sk_buff;