aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/containers.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-11 12:30:21 +0900
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-11 12:30:49 +0900
commit7a989b36d186e5a22763a61c9541ae202e2c0ba8 (patch)
tree076386442d229336c840a32f12810748d24d21a6 /src/tools/containers.h
parentcurve25519: reject deriving from NULL private keys (diff)
downloadwireguard-monolithic-historical-7a989b36d186e5a22763a61c9541ae202e2c0ba8.tar.xz
wireguard-monolithic-historical-7a989b36d186e5a22763a61c9541ae202e2c0ba8.zip
tools: allow for NULL keys everywhere
Diffstat (limited to 'src/tools/containers.h')
-rw-r--r--src/tools/containers.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tools/containers.h b/src/tools/containers.h
index c35465e..58d0657 100644
--- a/src/tools/containers.h
+++ b/src/tools/containers.h
@@ -26,8 +26,9 @@ struct wgallowedip {
enum {
WGPEER_REMOVE_ME = 1U << 0,
WGPEER_REPLACE_ALLOWEDIPS = 1U << 1,
- WGPEER_HAS_PRESHARED_KEY = 1U << 2,
- WGPEER_HAS_PERSISTENT_KEEPALIVE_INTERVAL = 1U << 3
+ WGPEER_HAS_PUBLIC_KEY = 1U << 2,
+ WGPEER_HAS_PRESHARED_KEY = 1U << 3,
+ WGPEER_HAS_PERSISTENT_KEEPALIVE_INTERVAL = 1U << 4
};
struct wgpeer {
@@ -53,8 +54,9 @@ struct wgpeer {
enum {
WGDEVICE_REPLACE_PEERS = 1U << 0,
WGDEVICE_HAS_PRIVATE_KEY = 1U << 1,
- WGDEVICE_HAS_LISTEN_PORT = 1U << 2,
- WGDEVICE_HAS_FWMARK = 1U << 3
+ WGDEVICE_HAS_PUBLIC_KEY = 1U << 2,
+ WGDEVICE_HAS_LISTEN_PORT = 1U << 3,
+ WGDEVICE_HAS_FWMARK = 1U << 4
};
struct wgdevice {