d6c2b867c04887bab6c2640ee12f4ed1b7616c1d
[strongswan.git] / src / charon / sa / authenticators / eap / eap_method.c
1 /*
2 * Copyright (C) 2006 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 #include "eap_method.h"
19
20 ENUM_BEGIN(eap_type_names, EAP_IDENTITY, EAP_GTC,
21 "EAP_IDENTITY",
22 "EAP_NOTIFICATION",
23 "EAP_NAK",
24 "EAP_MD5",
25 "EAP_OTP",
26 "EAP_GTC");
27 ENUM_NEXT(eap_type_names, EAP_SIM, EAP_SIM, EAP_GTC,
28 "EAP_SIM");
29 ENUM_NEXT(eap_type_names, EAP_AKA, EAP_AKA, EAP_SIM,
30 "EAP_AKA");
31 ENUM_NEXT(eap_type_names, EAP_MSCHAPV2, EAP_MSCHAPV2, EAP_AKA,
32 "EAP_MSCHAPV2");
33 ENUM_NEXT(eap_type_names, EAP_EXPANDED, EAP_EXPERIMENTAL, EAP_MSCHAPV2,
34 "EAP_EXPANDED",
35 "EAP_EXPERIMENTAL");
36 ENUM_END(eap_type_names, EAP_EXPERIMENTAL);
37
38 ENUM(eap_code_names, EAP_REQUEST, EAP_FAILURE,
39 "EAP_REQUEST",
40 "EAP_RESPONSE",
41 "EAP_SUCCESS",
42 "EAP_FAILURE",
43 );
44
45 ENUM(eap_role_names, EAP_SERVER, EAP_PEER,
46 "EAP_SERVER",
47 "EAP_PEER",
48 );
49