summaryrefslogtreecommitdiffstats
path: root/sys/net/wg_noise.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-03-15 17:56:50 +1100
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-04 16:21:39 +1000
commit0cbc67a981e373b786c2fd5b099e541b5a06517f (patch)
tree40348016e40f183f684a6d5c6702ebbd5708deff /sys/net/wg_noise.h
parentAdd noise_local_deinit to zero private keys (diff)
downloadwireguard-openbsd-0cbc67a981e373b786c2fd5b099e541b5a06517f.tar.xz
wireguard-openbsd-0cbc67a981e373b786c2fd5b099e541b5a06517f.zip
Ensure a peer has a consistent PSK (if set when creating)
Diffstat (limited to '')
-rw-r--r--sys/net/wg_noise.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/wg_noise.h b/sys/net/wg_noise.h
index 73349c78f8b..a90ed617ba1 100644
--- a/sys/net/wg_noise.h
+++ b/sys/net/wg_noise.h
@@ -134,7 +134,7 @@ int noise_local_keys(struct noise_local *, uint8_t[NOISE_PUBLIC_KEY_LEN],
void noise_remote_init(struct noise_remote *, uint8_t[NOISE_PUBLIC_KEY_LEN],
struct noise_local *);
-int noise_remote_set_psk(struct noise_remote *, uint8_t[NOISE_SYMMETRIC_KEY_LEN]);
+void noise_remote_set_psk(struct noise_remote *, uint8_t[NOISE_SYMMETRIC_KEY_LEN]);
int noise_remote_keys(struct noise_remote *, uint8_t[NOISE_PUBLIC_KEY_LEN],
uint8_t[NOISE_SYMMETRIC_KEY_LEN]);