aboutsummaryrefslogtreecommitdiffstats
path: root/src/wg_noise.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-04-21 01:02:20 +1000
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-21 01:02:55 +1000
commitc493910bda9547436080993fb559b81c29242b99 (patch)
tree9371765b7807bc2d0bdf2dfb35223275422609a3 /src/wg_noise.h
parentwg_noise: avoid handshake/keypair type confusion (diff)
downloadwireguard-freebsd-c493910bda9547436080993fb559b81c29242b99.tar.xz
wireguard-freebsd-c493910bda9547436080993fb559b81c29242b99.zip
wg_noise: ensure we check peer count on hashtable insert
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
Diffstat (limited to '')
-rw-r--r--src/wg_noise.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wg_noise.h b/src/wg_noise.h
index aa52e8e..8d7b54e 100644
--- a/src/wg_noise.h
+++ b/src/wg_noise.h
@@ -46,7 +46,7 @@ int noise_local_keys(struct noise_local *,
struct noise_remote *
noise_remote_alloc(struct noise_local *, void *,
const uint8_t[NOISE_PUBLIC_KEY_LEN]);
-void noise_remote_enable(struct noise_remote *);
+int noise_remote_enable(struct noise_remote *);
void noise_remote_disable(struct noise_remote *);
struct noise_remote *
noise_remote_lookup(struct noise_local *, const uint8_t[NOISE_PUBLIC_KEY_LEN]);