xref: /freebsd/contrib/wpa/src/ap/comeback_token.h (revision a58ece87303f882367105c92a27268ed6befa655)
1 /*
2  * hostapd / Comeback token mechanism for SAE
3  * Copyright (c) 2002-2017, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef COMEBACK_TOKEN_H
10 #define COMEBACK_TOKEN_H
11 
12 int check_comeback_token(const u8 *comeback_key,
13 			 u16 *comeback_pending_idx, const u8 *addr,
14 			 const u8 *token, size_t token_len);
15 struct wpabuf *
16 auth_build_token_req(struct os_reltime *last_comeback_key_update,
17 		     u8 *comeback_key, u16 comeback_idx,
18 		     u16 *comeback_pending_idx, size_t idx_len,
19 		     int group, const u8 *addr, int h2e);
20 
21 #endif /* COMEBACK_TOKEN_H */
22