summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-22 00:56:21 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-22 00:56:21 +1000
commitb7ed108b3cb24b639db4cf92886cf4771a66ebb4 (patch)
tree74fac5c645df4b4cecd7660d850bccff1c9da9b0 /src/wireguard.h
parentSplit ID removal and cleaning (diff)
downloadwireguard-openbsd-b7ed108b3cb24b639db4cf92886cf4771a66ebb4.tar.xz
wireguard-openbsd-b7ed108b3cb24b639db4cf92886cf4771a66ebb4.zip
Add ID checks for incoming messages
On the off chance that an error occurs in if_wg.c, then we should check that the incoming packet is intended to be for us. This may have been abused in the handshake recv response function. It doesn't (and can't) be checked in the recv initiation, because there is no ID on our end yet.
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 6f63cfbd3e4..4b7ad038282 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -205,6 +205,7 @@ enum wg_error {
WG_REKEY,
WG_STATE,
WG_MAC,
+ WG_ID,
};
void wg_handshake_init(struct wg_handshake *);