2 * Copyright (C) 2010-2012 Andreas Steffen
4 * Copyright (C) secunet Security Networks AG
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>.
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
18 * @defgroup eap_tnc_i eap_tnc
25 typedef struct eap_tnc_t eap_tnc_t
;
27 #include <sa/eap/eap_inner_method.h>
30 * Implementation of the eap_method_t interface using EAP-TNC or PT-EAP.
35 * Implemented eap_inner_method_t interface.
37 eap_inner_method_t eap_inner_method
;
41 * Creates the EAP method EAP-TNC acting as server.
43 * @param server ID of the EAP server
44 * @param peer ID of the EAP client
45 * @return eap_tnc_t object
47 eap_tnc_t
*eap_tnc_create_server(identification_t
*server
,
48 identification_t
*peer
);
51 * Creates the EAP method EAP-TNC acting as peer.
53 * @param server ID of the EAP server
54 * @param peer ID of the EAP client
55 * @return eap_tnc_t object
57 eap_tnc_t
*eap_tnc_create_peer(identification_t
*server
,
58 identification_t
*peer
);
61 * Creates the EAP method PT-EAP acting as server.
63 * @param server ID of the EAP server
64 * @param peer ID of the EAP client
65 * @return eap_tnc_t object
67 eap_tnc_t
*eap_tnc_pt_create_server(identification_t
*server
,
68 identification_t
*peer
);
71 * Creates the EAP method PT-EAP acting as peer.
73 * @param server ID of the EAP server
74 * @param peer ID of the EAP client
75 * @return eap_tnc_t object
77 eap_tnc_t
*eap_tnc_pt_create_peer(identification_t
*server
,
78 identification_t
*peer
);
80 #endif /** EAP_TNC_H_ @}*/