summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-18 15:48:36 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-18 15:48:36 +1000
commit3b78060a8cf3af72814de3549ecc856da9b44170 (patch)
tree38bd60f7e7674a0a9628da10fed9deb3be41896f /src/wireguard.h
parentAdd initial docs (diff)
downloadwireguard-openbsd-3b78060a8cf3af72814de3549ecc856da9b44170.tar.xz
wireguard-openbsd-3b78060a8cf3af72814de3549ecc856da9b44170.zip
Simplify initiation timeout
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 270e35c2f17..039086665f7 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -198,6 +198,7 @@ enum wg_error wg_session_decrypt(struct wg_session *, struct wg_msg_transport *,
enum wg_error wg_session_from_handshake(struct wg_session *, struct wg_handshake *, struct wg_timers *);
void wg_keypair_from_bytes(struct wg_keypair *, const uint8_t [WG_KEY_SIZE]);
+void wg_keypair_generate(struct wg_keypair *);
enum wg_pkt_type wg_pkt_type(uint8_t *, size_t);
/* Timer functions */
@@ -214,12 +215,7 @@ void wg_timer_broken_flag(struct wg_timers *);
void wg_timer_broken_unflag(struct wg_timers *);
void wg_timer_reinit_flag(struct wg_timers *);
void wg_timer_reinit_unflag(struct wg_timers *);
-struct timespec wg_timer_last_initiation(struct wg_timers *);
struct timespec wg_timer_last_handshake(struct wg_timers *);
-
-/* TODO make better */
-void wg_keypair_generate(struct wg_keypair *);
-int wg_timespec_timedout(struct timespec *, time_t);
-
+int wg_timer_limit_initiation(struct wg_timers *);
#endif /* _LIBWG_H_ */