aboutsummaryrefslogtreecommitdiffstats
path: root/src/wg_cookie.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wg_cookie.h')
-rw-r--r--src/wg_cookie.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wg_cookie.h b/src/wg_cookie.h
index 8e59c3229d2d..e971fa236353 100644
--- a/src/wg_cookie.h
+++ b/src/wg_cookie.h
@@ -53,12 +53,14 @@ struct cookie_checker {
int cookie_init(void);
void cookie_deinit(void);
void cookie_checker_init(struct cookie_checker *);
+void cookie_checker_free(struct cookie_checker *);
void cookie_checker_update(struct cookie_checker *,
const uint8_t[COOKIE_INPUT_SIZE]);
void cookie_checker_create_payload(struct cookie_checker *,
struct cookie_macs *cm, uint8_t[COOKIE_NONCE_SIZE],
uint8_t [COOKIE_ENCRYPTED_SIZE], struct sockaddr *);
void cookie_maker_init(struct cookie_maker *, const uint8_t[COOKIE_INPUT_SIZE]);
+void cookie_maker_free(struct cookie_maker *);
int cookie_maker_consume_payload(struct cookie_maker *,
uint8_t[COOKIE_NONCE_SIZE], uint8_t[COOKIE_ENCRYPTED_SIZE]);
void cookie_maker_mac(struct cookie_maker *, struct cookie_macs *,