|
wpa_supplicant / hostapd
2.5
|
EAP server method registration. More...
Functions | |
| const struct eap_method * | eap_server_get_eap_method (int vendor, EapType method) |
| Get EAP method based on type number. More... | |
| EapType | eap_server_get_type (const char *name, int *vendor) |
| Get EAP type for the given EAP method name. More... | |
| struct eap_method * | eap_server_method_alloc (int version, int vendor, EapType method, const char *name) |
| Allocate EAP server method structure. More... | |
| void | eap_server_method_free (struct eap_method *method) |
| Free EAP server method structure. More... | |
| int | eap_server_method_register (struct eap_method *method) |
| Register an EAP server method. More... | |
| void | eap_server_unregister_methods (void) |
| Unregister EAP server methods. More... | |
| const char * | eap_server_get_name (int vendor, EapType type) |
| Get EAP method name for the given EAP type. More... | |
EAP server method registration.
| const struct eap_method* eap_server_get_eap_method | ( | int | vendor, |
| EapType | method | ||
| ) |
Get EAP method based on type number.
| vendor | EAP Vendor-Id (0 = IETF) |
| method | EAP type number |
| const char* eap_server_get_name | ( | int | vendor, |
| EapType | type | ||
| ) |
Get EAP method name for the given EAP type.
| vendor | EAP Vendor-Id (0 = IETF) |
| type | EAP method type |
This function maps EAP type numbers into EAP type names based on the list of EAP methods included in the build.
| EapType eap_server_get_type | ( | const char * | name, |
| int * | vendor | ||
| ) |
Get EAP type for the given EAP method name.
| name | EAP method name, e.g., TLS |
| vendor | Buffer for returning EAP Vendor-Id |
This function maps EAP type names into EAP type numbers based on the list of EAP methods included in the build.
| struct eap_method* eap_server_method_alloc | ( | int | version, |
| int | vendor, | ||
| EapType | method, | ||
| const char * | name | ||
| ) |
Allocate EAP server method structure.
| version | Version of the EAP server method interface (set to EAP_SERVER_METHOD_INTERFACE_VERSION) |
| vendor | EAP Vendor-ID (EAP_VENDOR_*) (0 = IETF) |
| method | EAP type number (EAP_TYPE_*) |
| name | Name of the method (e.g., "TLS") |
The returned structure should be freed with eap_server_method_free() when it is not needed anymore.
| void eap_server_method_free | ( | struct eap_method * | method | ) |
Free EAP server method structure.
| method | Method structure allocated with eap_server_method_alloc() |
| int eap_server_method_register | ( | struct eap_method * | method | ) |
Register an EAP server method.
| method | EAP method to register |
Each EAP server method needs to call this function to register itself as a supported EAP method.
| void eap_server_unregister_methods | ( | void | ) |
Unregister EAP server methods.
This function is called at program termination to unregister all EAP server methods.
1.8.6