wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eap_methods.h
Go to the documentation of this file.
1 
5 #ifndef EAP_SERVER_METHODS_H
6 #define EAP_SERVER_METHODS_H
7 
8 #include "eap_common/eap_defs.h"
9 
11  EapType method);
13  EapType method, const char *name);
16 
17 EapType eap_server_get_type(const char *name, int *vendor);
19 const char * eap_server_get_name(int vendor, EapType type);
20 
21 /* EAP server method registration calls for statically linked in methods */
22 int eap_server_identity_register(void);
23 int eap_server_md5_register(void);
24 int eap_server_tls_register(void);
25 int eap_server_unauth_tls_register(void);
26 int eap_server_wfa_unauth_tls_register(void);
27 int eap_server_mschapv2_register(void);
28 int eap_server_peap_register(void);
29 int eap_server_tlv_register(void);
30 int eap_server_gtc_register(void);
31 int eap_server_ttls_register(void);
32 int eap_server_sim_register(void);
33 int eap_server_aka_register(void);
34 int eap_server_aka_prime_register(void);
35 int eap_server_pax_register(void);
36 int eap_server_psk_register(void);
37 int eap_server_sake_register(void);
38 int eap_server_gpsk_register(void);
39 int eap_server_vendor_test_register(void);
40 int eap_server_fast_register(void);
41 int eap_server_wsc_register(void);
42 int eap_server_ikev2_register(void);
43 int eap_server_tnc_register(void);
44 int eap_server_pwd_register(void);
45 int eap_server_eke_register(void);
46 
47 #endif /* EAP_SERVER_METHODS_H */
const struct eap_method * eap_server_get_eap_method(int vendor, EapType method)
Get EAP method based on type number.
Definition: eap_server_methods.c:21
EapType eap_server_get_type(const char *name, int *vendor)
Get EAP type for the given EAP method name.
Definition: eap_server_methods.c:41
int eap_server_method_register(struct eap_method *method)
Register an EAP server method.
Definition: eap_server_methods.c:101
int vendor
EAP Vendor-ID (EAP_VENDOR_*) (0 = IETF)
Definition: eap_i.h:70
void eap_server_unregister_methods(void)
Unregister EAP server methods.
Definition: eap_server_methods.c:133
const char * eap_server_get_name(int vendor, EapType type)
Get EAP method name for the given EAP type.
Definition: eap_server_methods.c:158
EapType method
EAP type number (EAP_TYPE_*)
Definition: eap_i.h:76
EAP server/peer: Shared EAP definitions.
struct eap_method * eap_server_method_alloc(int version, int vendor, EapType method, const char *name)
Allocate EAP server method structure.
Definition: eap_server_methods.c:67
const char * name
Name of the method (e.g., "TLS")
Definition: eap_i.h:82
int version
Version of the EAP peer method interface.
Definition: eap_i.h:237
void eap_server_method_free(struct eap_method *method)
Free EAP server method structure.
Definition: eap_server_methods.c:86
EAP method interface This structure defines the EAP method interface. Each method will need to regist...
Definition: eap_i.h:65