aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-27 03:43:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:25:23 +0100
commite3661abdcf846f8bd03a95828dbccb0fdf157e56 (patch)
tree173ccbcdb8531393a4ef16ec161fad6d528e869a
parentdevice: only take reference if netns is different (diff)
downloadwireguard-monolithic-historical-e3661abdcf846f8bd03a95828dbccb0fdf157e56.tar.xz
wireguard-monolithic-historical-e3661abdcf846f8bd03a95828dbccb0fdf157e56.zip
global: get rid of useless forward declarations
-rw-r--r--src/cookie.h2
-rw-r--r--src/noise.h6
-rw-r--r--src/socket.h3
3 files changed, 0 insertions, 11 deletions
diff --git a/src/cookie.h b/src/cookie.h
index f0e5594..e264e35 100644
--- a/src/cookie.h
+++ b/src/cookie.h
@@ -7,8 +7,6 @@
#include <linux/rwsem.h>
struct wireguard_peer;
-struct wireguard_device;
-struct sk_buff;
struct cookie_checker {
u8 secret[NOISE_HASH_LEN];
diff --git a/src/noise.h b/src/noise.h
index f696c57..01026a4 100644
--- a/src/noise.h
+++ b/src/noise.h
@@ -92,13 +92,7 @@ struct noise_handshake {
struct rw_semaphore lock;
};
-struct wireguard_peer;
struct wireguard_device;
-struct message_header;
-struct message_handshake_initiation;
-struct message_handshake_response;
-struct message_data;
-struct message_handshake_cookie;
void noise_init(void);
bool noise_handshake_init(struct noise_handshake *handshake, struct noise_static_identity *static_identity, const u8 peer_public_key[NOISE_PUBLIC_KEY_LEN], const u8 peer_preshared_key[NOISE_SYMMETRIC_KEY_LEN], struct wireguard_peer *peer);
diff --git a/src/socket.h b/src/socket.h
index 4f83926..843d544 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -8,9 +8,6 @@
#include <linux/if_vlan.h>
#include <linux/if_ether.h>
-struct wireguard_device;
-struct endpoint;
-
int socket_init(struct wireguard_device *wg);
void socket_uninit(struct wireguard_device *wg);
int socket_send_buffer_to_peer(struct wireguard_peer *peer, void *data, size_t len, u8 ds);