Removed strayed code fragment
[strongswan.git] / src / charon / plugins / eap_sim / eap_sim_server.h
1 /*
2 * Copyright (C) 2009 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
16 /**
17 * @defgroup eap_sim_server eap_sim_server
18 * @{ @ingroup eap_sim
19 */
20
21 #ifndef EAP_SIM_SERVER_H_
22 #define EAP_SIM_SERVER_H_
23
24 #include <sa/authenticators/eap/eap_method.h>
25
26 typedef struct eap_sim_server_t eap_sim_server_t;
27
28 /**
29 * EAP-SIM server implementation.
30 *
31 * This EAP-SIM module uses sim_provider_t implementations for triplet
32 * calculation, found via the eap_sim_manager_t.
33 */
34 struct eap_sim_server_t {
35
36 /**
37 * Implemented eap_method_t interface.
38 */
39 eap_method_t interface;
40
41 /**
42 * Destroy a eap_sim_server_t.
43 */
44 void (*destroy)(eap_sim_server_t *this);
45 };
46
47 /**
48 * Creates the EAP method EAP-SIM acting as server.
49 *
50 * @param server ID of the EAP server
51 * @param peer ID of the EAP peer
52 * @return eap_sim_t object
53 */
54 eap_sim_server_t *eap_sim_server_create(identification_t *server,
55 identification_t *peer);
56
57 #endif /** EAP_SIM_SERVER_H_ @}*/