summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-22 23:57:00 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-22 23:57:00 +1000
commitc789b8e806e3aeb862402a62ea89c506860de5e6 (patch)
tree2ef3de123ad2608404857e59450ffd7e7c01a18f /src/wireguard.h
parentCount error if unable to encrypt packet (diff)
downloadwireguard-openbsd-c789b8e806e3aeb862402a62ea89c506860de5e6.tar.xz
wireguard-openbsd-c789b8e806e3aeb862402a62ea89c506860de5e6.zip
Add extra wg_session_confirm
This will assist when fixing up the session being created before receiving traffic, when being a responder.
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 d53f2ee9fa4..c709b504af3 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -230,6 +230,7 @@ enum wg_error wg_handshake_merge(struct wg_handshake *, struct wg_handshake *);
enum wg_error wg_session_encrypt(struct wg_session *, struct wg_msg_transport *, size_t);
enum wg_error wg_session_decrypt(struct wg_session *, struct wg_msg_transport *, size_t);
enum wg_error wg_session_from_handshake(struct wg_session *, struct wg_handshake *);
+enum wg_error wg_session_confirm(struct wg_session *);
void wg_keypair_from_bytes(struct wg_keypair *, const uint8_t [WG_KEY_SIZE]);
void wg_keypair_generate(struct wg_keypair *);