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