$search

eap_server_methods.c File Reference

#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_methods.h"
#include "eap_common/eap_defs.h"
Include dependency graph for eap_server_methods.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct eap_methodeap_server_get_eap_method (int vendor, EapType method)
: Name of the method (e.g., "TLS")

eap_server_method_alloc - Allocate EAP server method structure

Version:
: Version of the EAP server method interface (set to EAP_SERVER_METHOD_INTERFACE_VERSION) : EAP Vendor-ID (EAP_VENDOR_*) (0 = IETF) : EAP type number (EAP_TYPE_*)

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_methodeap_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

eap_server_get_type - Get EAP type for the given EAP method name

: Buffer for returning EAP Vendor-Id Returns: EAP method type or EAP_TYPE_NONE if not found

This function maps EAP type names into EAP type numbers based on the list of EAP methods included in the build.

EapType eap_server_get_type (const char *name, int *vendor)

Variables

static struct eap_methodeap_methods

Function Documentation

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.


Variable Documentation

struct eap_method* eap_methods [static]

Definition at line 22 of file eap_server_methods.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:15 2013