summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 401a7f7a051..2add51d2e39 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -245,23 +245,22 @@ static char *wg_error_str[] = {
void wg_device_init(struct wg_device *,
void (*)(struct wg_peer *, enum wg_pkt_type, uint32_t));
void wg_device_setkey(struct wg_device *, struct wg_privkey *);
+void wg_device_destroy(struct wg_device *);
+
struct wg_peer *wg_device_new_peer(struct wg_device *, struct wg_pubkey *, void *);
struct wg_peer *wg_device_ref_peerkey(struct wg_device *, struct wg_pubkey *);
struct wg_peer *wg_device_ref_peerid(struct wg_device *, uint32_t);
-
void wg_peer_put(struct wg_peer *);
void wg_peer_drop(struct wg_peer *);
-void wg_peer_attach_session(struct wg_peer *, struct wg_session *);
+
void wg_peer_reset_attempts(struct wg_peer *);
+void wg_peer_clean(struct wg_peer *);
void wg_peer_setshared(struct wg_peer *, struct wg_privkey *);
void wg_peer_getshared(struct wg_peer *, struct wg_privkey *);
-void wg_peer_clean(struct wg_peer *);
struct timespec wg_peer_last_handshake(struct wg_peer *);
+
struct wg_session *wg_peer_hs_session(struct wg_peer *);
struct wg_session *wg_peer_ks_session(struct wg_peer *);
-
-struct wg_session *wg_device_new_session(struct wg_device *);
-struct wg_session *wg_device_ref_session(struct wg_device *, uint32_t);
void wg_session_put(struct wg_session *);
enum wg_error wg_device_rx_initiation(struct wg_device *,