blob: d5de9e684b498eefe1762ab974f0fb26969f2a38 [file] [log] [blame]
Sunil Ravi38ad1ed2023-01-17 23:58:31 +00001/*
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
12int check_comeback_token(const u8 *comeback_key,
13 u16 *comeback_pending_idx, const u8 *addr,
14 const u8 *token, size_t token_len);
15struct wpabuf *
16auth_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 */