diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-09-29 04:36:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-09-29 19:25:30 +0200 |
commit | a18ceb81ca78a7f37adc436f35e6eeb8683bb984 (patch) | |
tree | e47051e5acf65c5d2cf8c3fa494abb6742d0bb24 /src/cookie.h | |
parent | poly1305: optimize unaligned access (diff) | |
download | wireguard-monolithic-historical-a18ceb81ca78a7f37adc436f35e6eeb8683bb984.tar.xz wireguard-monolithic-historical-a18ceb81ca78a7f37adc436f35e6eeb8683bb984.zip |
Rework headers and includes
Diffstat (limited to 'src/cookie.h')
-rw-r--r-- | src/cookie.h | 15 |
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; |