]>
Commit | Line | Data |
---|---|---|
79a87846 MW |
1 | /* |
2 | * Copyright (C) 2008 Martin Willi | |
3 | * Hochschule fuer Technik Rapperswil | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License as published by the | |
7 | * Free Software Foundation; either version 2 of the License, or (at your | |
8 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but | |
11 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
12 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 | * for more details. | |
14 | * | |
15 | * $Id$ | |
16 | */ | |
17 | ||
18 | /** | |
19 | * @defgroup eap_sim_file_provider eap_sim_file_provider | |
20 | * @{ @ingroup eap_sim_file | |
21 | */ | |
22 | ||
23 | #ifndef EAP_SIM_FILE_PROVIDER_H_ | |
24 | #define EAP_SIM_FILE_PROVIDER_H_ | |
25 | ||
26 | #include "eap_sim_file_triplets.h" | |
27 | ||
28 | #include <sa/authenticators/eap/sim_manager.h> | |
29 | ||
30 | typedef struct eap_sim_file_provider_t eap_sim_file_provider_t; | |
31 | ||
32 | /** | |
33 | * SIM provider implementation on top of triplets file. | |
34 | */ | |
35 | struct eap_sim_file_provider_t { | |
36 | ||
37 | /** | |
38 | * Implements sim_provider_t interface. | |
39 | */ | |
40 | sim_provider_t provider; | |
41 | ||
42 | /** | |
43 | * Destroy a eap_sim_file_provider_t. | |
44 | */ | |
45 | void (*destroy)(eap_sim_file_provider_t *this); | |
46 | }; | |
47 | ||
48 | /** | |
49 | * Create a eap_sim_file_provider instance. | |
50 | */ | |
51 | eap_sim_file_provider_t *eap_sim_file_provider_create( | |
52 | eap_sim_file_triplets_t *triplets); | |
53 | ||
1490ff4d | 54 | #endif /** EAP_SIM_FILE_PROVIDER_ @}*/ |