summaryrefslogtreecommitdiffhomepage
path: root/src/cookie.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-09-29 04:36:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-09-29 19:25:30 +0200
commit7dbb44fcbea3bbed2c73919394e22865552b7c0d (patch)
tree09d03a9b211f9f068d25b84f67c8c60d9eb30199 /src/cookie.h
parent0b9dfadd25b60bf2fed43d5b553098ed70028374 (diff)
Rework headers and includes
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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;