]>
Commit | Line | Data |
---|---|---|
ac4dd543 MW |
1 | /* |
2 | * Copyright (C) 2009 Martin Willi | |
19ef2aec TB |
3 | * |
4 | * Copyright (C) secunet Security Networks AG | |
ac4dd543 MW |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2 of the License, or (at your | |
9 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | * for more details. | |
15 | */ | |
16 | ||
17 | /** | |
18 | * @defgroup eap_sim_peer eap_sim_peer | |
19 | * @{ @ingroup eap_sim | |
20 | */ | |
21 | ||
22 | #ifndef EAP_SIM_PEER_H_ | |
23 | #define EAP_SIM_PEER_H_ | |
24 | ||
326a9423 | 25 | #include <sa/eap/eap_method.h> |
ac4dd543 MW |
26 | |
27 | typedef struct eap_sim_peer_t eap_sim_peer_t; | |
28 | ||
29 | /** | |
30 | * EAP-SIM peer implementation. | |
ac4dd543 MW |
31 | */ |
32 | struct eap_sim_peer_t { | |
33 | ||
34 | /** | |
35 | * Implemented eap_method_t interface. | |
36 | */ | |
37 | eap_method_t interface; | |
38 | ||
39 | /** | |
40 | * Destroy a eap_sim_peer_t. | |
41 | */ | |
42 | void (*destroy)(eap_sim_peer_t *this); | |
43 | }; | |
44 | ||
45 | /** | |
46 | * Creates the EAP method EAP-SIM acting as peer. | |
47 | * | |
48 | * @param server ID of the EAP server | |
49 | * @param peer ID of the EAP peer | |
50 | * @return eap_sim_t object | |
51 | */ | |
52 | eap_sim_peer_t *eap_sim_peer_create(identification_t *server, | |
53 | identification_t *peer); | |
54 | ||
13f418b4 | 55 | #endif /** EAP_SIM_PEER_H_ @}*/ |