eap_sim_db.h (189261) | eap_sim_db.h (214734) |
---|---|
1/* 2 * hostapd / EAP-SIM database/authenticator gateway 3 * Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * 9 * Alternatively, this software may be distributed under the terms of BSD 10 * license. 11 * 12 * See README and COPYING for more details. 13 */ 14 15#ifndef EAP_SIM_DB_H 16#define EAP_SIM_DB_H 17 | 1/* 2 * hostapd / EAP-SIM database/authenticator gateway 3 * Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * 9 * Alternatively, this software may be distributed under the terms of BSD 10 * license. 11 * 12 * See README and COPYING for more details. 13 */ 14 15#ifndef EAP_SIM_DB_H 16#define EAP_SIM_DB_H 17 |
18#ifdef EAP_SIM 19 | |
20#include "eap_common/eap_sim_common.h" 21 22/* Identity prefixes */ 23#define EAP_SIM_PERMANENT_PREFIX '1' 24#define EAP_SIM_PSEUDONYM_PREFIX '3' 25#define EAP_SIM_REAUTH_ID_PREFIX '5' 26#define EAP_AKA_PERMANENT_PREFIX '0' 27#define EAP_AKA_PSEUDONYM_PREFIX '2' --- 57 unchanged lines hidden (view full) --- 85 size_t identity_len, u8 *_rand, u8 *autn, u8 *ik, 86 u8 *ck, u8 *res, size_t *res_len, 87 void *cb_session_ctx); 88 89int eap_sim_db_resynchronize(void *priv, const u8 *identity, 90 size_t identity_len, const u8 *auts, 91 const u8 *_rand); 92 | 18#include "eap_common/eap_sim_common.h" 19 20/* Identity prefixes */ 21#define EAP_SIM_PERMANENT_PREFIX '1' 22#define EAP_SIM_PSEUDONYM_PREFIX '3' 23#define EAP_SIM_REAUTH_ID_PREFIX '5' 24#define EAP_AKA_PERMANENT_PREFIX '0' 25#define EAP_AKA_PSEUDONYM_PREFIX '2' --- 57 unchanged lines hidden (view full) --- 83 size_t identity_len, u8 *_rand, u8 *autn, u8 *ik, 84 u8 *ck, u8 *res, size_t *res_len, 85 void *cb_session_ctx); 86 87int eap_sim_db_resynchronize(void *priv, const u8 *identity, 88 size_t identity_len, const u8 *auts, 89 const u8 *_rand); 90 |
93#else /* EAP_SIM */ 94static inline void * 95eap_sim_db_init(const char *config, 96 void (*get_complete_cb)(void *ctx, void *session_ctx), 97 void *ctx) 98{ 99 return (void *) 1; 100} 101 102static inline void eap_sim_db_deinit(void *priv) 103{ 104} 105#endif /* EAP_SIM */ 106 | |
107#endif /* EAP_SIM_DB_H */ | 91#endif /* EAP_SIM_DB_H */ |