summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-10 17:36:27 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-09-10 17:36:27 +1000
commitde6a10ef67b147367282d6913ba7f7975cf78461 (patch)
tree6382be4d93b52397c1a2da4d35d6fcaa33dceb43 /src/wireguard.h
parentMinor if_wg.c bugfix (diff)
downloadwireguard-openbsd-de6a10ef67b147367282d6913ba7f7975cf78461.tar.xz
wireguard-openbsd-de6a10ef67b147367282d6913ba7f7975cf78461.zip
Update debug messages
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 5d90ef65a29..4518ee8e6bc 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -211,6 +211,20 @@ enum wg_error {
WG_ID,
};
+static char *wg_error_str[] = {
+ "no error",
+ "invalid timestamp",
+ "exceeded initiation attemts",
+ "exceeded initiation transmit rate",
+ "unable to decrypt",
+ "replay detected",
+ "packet rejected",
+ "want rekey",
+ "invalid state",
+ "invalid mac",
+ "invalid ID",
+};
+
void wg_handshake_init(struct wg_handshake *);
void wg_session_init(struct wg_session *);
uint32_t wg_handshake_id(struct wg_handshake *);