2 * Copyright (C) 2010 Martin Willi
3 * Copyright (C) 2010 revosec AG
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>.
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
18 * @{ @ingroup libstrongswan
24 typedef enum eap_code_t eap_code_t
;
25 typedef enum eap_type_t eap_type_t
;
30 * EAP code, type of an EAP message
40 * enum names for eap_code_t.
42 extern enum_name_t
*eap_code_names
;
45 * short string enum names for eap_code_t.
47 extern enum_name_t
*eap_code_short_names
;
50 * EAP types, defines the EAP method implementation
65 /** not a method, but an implementation providing different methods */
68 EAP_EXPERIMENTAL
= 255,
72 * enum names for eap_type_t.
74 extern enum_name_t
*eap_type_names
;
77 * short string enum names for eap_type_t.
79 extern enum_name_t
*eap_type_short_names
;
82 * Lookup the EAP method type from a string.
84 * @param name EAP method name (such as "md5", "aka")
85 * @return method type, 0 if unkown
87 eap_type_t
eap_type_from_string(char *name
);
89 #endif /** EAP_H_ @}*/