summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 74f2cd7ce12..1187eba959f 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -101,12 +101,16 @@ struct wg_upcall {
uint8_t *u_pubkey, *u_privkey;
};
+struct wg_keyset {
+ uint8_t k_psk[WG_KEY_SIZE];
+ uint8_t k_pubkey[WG_KEY_SIZE];
+ uint8_t k_local_pubkey[WG_KEY_SIZE], k_local_privkey[WG_KEY_SIZE];
+};
+
struct wg_conn {
struct rwlock c_lock;
- uint8_t c_psk[WG_KEY_SIZE];
- uint8_t c_pubkey[WG_KEY_SIZE];
- uint8_t c_local_pubkey[WG_KEY_SIZE], c_local_privkey[WG_KEY_SIZE];
+ struct wg_keyset c_ks;
struct wg_handshake c_hs;
struct wg_session c_sess, c_sess_old;
struct wg_cookie c_cookie;