moved eap_from_string() fomr libcharon to libstrongswan to make it available in starter
[strongswan.git] / src / libcharon / 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
16 #include "eap_method.h"
17
18 ENUM(eap_code_names, EAP_REQUEST, EAP_FAILURE,
19 "EAP_REQUEST",
20 "EAP_RESPONSE",
21 "EAP_SUCCESS",
22 "EAP_FAILURE",
23 );
24
25 ENUM(eap_code_short_names, EAP_REQUEST, EAP_FAILURE,
26 "REQ",
27 "RES",
28 "SUCC",
29 "FAIL",
30 );
31
32 ENUM(eap_role_names, EAP_SERVER, EAP_PEER,
33 "EAP_SERVER",
34 "EAP_PEER",
35 );
36