summaryrefslogtreecommitdiffstats
path: root/sys/net/wg_noise.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-03-15 17:47:34 +1100
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-04 16:21:39 +1000
commitda68246e62826bc7bc4ff2d3230a1f9a85bdfaae (patch)
tree338f70dc9520932009208e2749056606cf15b495 /sys/net/wg_noise.h
parentAdd a guard page between I/O virtual address space allocations. The idea (diff)
downloadwireguard-openbsd-da68246e62826bc7bc4ff2d3230a1f9a85bdfaae.tar.xz
wireguard-openbsd-da68246e62826bc7bc4ff2d3230a1f9a85bdfaae.zip
Add noise_local_deinit to zero private keys
Diffstat (limited to '')
-rw-r--r--sys/net/wg_noise.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/wg_noise.h b/sys/net/wg_noise.h
index 5bcc156739c..73349c78f8b 100644
--- a/sys/net/wg_noise.h
+++ b/sys/net/wg_noise.h
@@ -125,6 +125,7 @@ struct noise_local {
/* Set/Get noise parameters */
void noise_local_init(struct noise_local *, struct noise_upcall *);
+void noise_local_deinit(struct noise_local *);
void noise_local_lock_identity(struct noise_local *);
void noise_local_unlock_identity(struct noise_local *);
int noise_local_set_private(struct noise_local *, uint8_t[NOISE_PUBLIC_KEY_LEN]);