summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-06-16 21:05:24 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-06-16 21:05:24 +1000
commit1b8964c0fcab365ac381e251cdae07c7c42183c1 (patch)
treed9b1c4e9ead45732f03ee1452854d8a04e29615e /src/wireguard.h
parentstaging4 (diff)
downloadwireguard-openbsd-1b8964c0fcab365ac381e251cdae07c7c42183c1.tar.xz
wireguard-openbsd-1b8964c0fcab365ac381e251cdae07c7c42183c1.zip
staging5
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 646b889b92b..63da41fd67d 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -20,7 +20,7 @@
#define WG_ENCRYPTED_SIZE(n) ((n) + WG_MAC_SIZE)
#define WG_PADDING_SIZE(n) ((WG_MSG_PADDING_SIZE - (n)) % WG_MSG_PADDING_SIZE)
-#define WG_ENCRYPTED_PADDED_SIZE(n) WG_ENCRYPTED_SIZE(WG_PADDED_SIZE(n))
+#define WG_ENCRYPTED_PADDED_SIZE(n) WG_ENCRYPTED_SIZE(WG_PADDED_SIZE(n)) //unused
/* Constant for session */
#define WG_REKEY_AFTER_MESSAGES (((uint64_t) 2<<48) - 1)
@@ -54,6 +54,7 @@ enum wg_pkt_type {
};
struct wg_conn {
+ void *c_arg;
struct rwlock c_lock;
uint8_t c_psk[WG_KEY_SIZE];
uint8_t c_pubkey[WG_KEY_SIZE];