$search
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_methods.h"
#include "eap_common/eap_defs.h"
Go to the source code of this file.
Functions | |
struct eap_method * | eap_server_get_eap_method (int vendor, EapType method) |
: Name of the method (e.g., "TLS") | |
eap_server_method_alloc - Allocate EAP server method structure
Returns: Allocated EAP method structure or NULL on failure The returned structure should be freed with eap_server_method_free() when it is not needed anymore. | |
const char * | eap_server_get_name (int vendor, EapType type) |
struct eap_method * | eap_server_method_alloc (int version, int vendor, EapType method, const char *name) |
void | eap_server_method_free (struct eap_method *method) |
int | eap_server_method_register (struct eap_method *method) |
void | eap_server_unregister_methods (void) |
: EAP method name, e.g., TLS | |
EapType | eap_server_get_type (const char *name, int *vendor) |
Variables | |
static struct eap_method * | eap_methods |
struct eap_method* eap_server_get_eap_method | ( | int | vendor, | |
EapType | method | |||
) | [read] |
eap_server_get_eap_method - Get EAP method based on type number : EAP Vendor-Id (0 = IETF) : EAP type number Returns: Pointer to EAP method or NULL if not found
Definition at line 31 of file eap_server_methods.c.
const char* eap_server_get_name | ( | int | vendor, | |
EapType | type | |||
) |
eap_server_get_name - Get EAP method name for the given EAP type : EAP Vendor-Id (0 = IETF) : EAP method type Returns: EAP method name, e.g., TLS, or NULL if not found
This function maps EAP type numbers into EAP type names based on the list of EAP methods included in the build.
Definition at line 167 of file eap_server_methods.c.
EapType eap_server_get_type | ( | const char * | name, | |
int * | vendor | |||
) |
Definition at line 51 of file eap_server_methods.c.
struct eap_method* eap_server_method_alloc | ( | int | version, | |
int | vendor, | |||
EapType | method, | |||
const char * | name | |||
) | [read] |
Definition at line 77 of file eap_server_methods.c.
void eap_server_method_free | ( | struct eap_method * | method | ) |
eap_server_method_free - Free EAP server method structure : Method structure allocated with eap_server_method_alloc()
Definition at line 96 of file eap_server_methods.c.
int eap_server_method_register | ( | struct eap_method * | method | ) |
eap_server_method_register - Register an EAP server method : EAP method to register Returns: 0 on success, -1 on invalid method, or -2 if a matching EAP method has already been registered
Each EAP server method needs to call this function to register itself as a supported EAP method.
Definition at line 111 of file eap_server_methods.c.
void eap_server_unregister_methods | ( | void | ) |
eap_server_unregister_methods - Unregister EAP server methods
This function is called at program termination to unregister all EAP server methods.
Definition at line 142 of file eap_server_methods.c.
struct eap_method* eap_methods [static] |
Definition at line 22 of file eap_server_methods.c.