aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
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
commit66585d56a941b15d95d15e21641e89d86bb6271b (patch)
treeabd033864b5125a2b04813d964abbc1336ace1cc /src
parentdevice: only take reference if netns is different (diff)
downloadwireguard-linux-compat-66585d56a941b15d95d15e21641e89d86bb6271b.tar.xz
wireguard-linux-compat-66585d56a941b15d95d15e21641e89d86bb6271b.zip
global: get rid of useless forward declarations
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-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);