a (incomplete) implementation of draft-sheffer-ikev2-gtc-00.txt using PAM
[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_EXPANDED, EAP_EXPERIMENTAL, EAP_AKA,
32 "EAP_EXPANDED",
33 "EAP_EXPERIMENTAL");
34 ENUM_END(eap_type_names, EAP_EXPERIMENTAL);
35
36 ENUM(eap_code_names, EAP_REQUEST, EAP_FAILURE,
37 "EAP_REQUEST",
38 "EAP_RESPONSE",
39 "EAP_SUCCESS",
40 "EAP_FAILURE",
41 );
42
43 ENUM(eap_role_names, EAP_SERVER, EAP_PEER,
44 "EAP_SERVER",
45 "EAP_PEER",
46 );
47