Functions | Variables
eap_methods.c File Reference
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_methods.h"
Include dependency graph for eap_methods.c:

Go to the source code of this file.

Functions

struct eap_methodeap_peer_get_eap_method (int vendor, EapType method)
: EAP method name, e.g., TLS

eap_peer_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_peer_get_type (const char *name, int *vendor)
const char * eap_get_name (int vendor, EapType type)
size_t eap_get_names (char *buf, size_t buflen)
char ** eap_get_names_as_string_array (size_t *num)
struct eap_methodeap_peer_get_methods (size_t *count)
: Name of the method (e.g., "TLS")

eap_peer_method_alloc - Allocate EAP peer method structure

Version:
: Version of the EAP peer method interface (set to EAP_PEER_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_peer_method_free() when it is not needed anymore.

struct eap_methodeap_peer_method_alloc (int version, int vendor, EapType method, const char *name)
void eap_peer_method_free (struct eap_method *method)
int eap_peer_method_register (struct eap_method *method)
void eap_peer_unregister_methods (void)

Variables

static struct eap_methodeap_methods = NULL

Function Documentation

const char* eap_get_name ( int  vendor,
EapType  type 
)

eap_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 77 of file eap_methods.c.

size_t eap_get_names ( char *  buf,
size_t  buflen 
)

eap_get_names - Get space separated list of names for supported EAP methods : Buffer for names : Buffer length Returns: Number of characters written into buf (not including nul termination)

Definition at line 95 of file eap_methods.c.

char** eap_get_names_as_string_array ( size_t *  num)

eap_get_names_as_string_array - Get supported EAP methods as string array : Buffer for returning the number of items in array, not including NULL terminator. This parameter can be NULL if the length is not needed. Returns: A NULL-terminated array of strings, or NULL on error.

This function returns the list of names for all supported EAP methods as an array of strings. The caller must free the returned array items and the array.

Definition at line 130 of file eap_methods.c.

struct eap_method* eap_peer_get_eap_method ( int  vendor,
EapType  method 
) [read]

eap_peer_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 34 of file eap_methods.c.

struct eap_method* eap_peer_get_methods ( size_t *  count) [read]

eap_peer_get_methods - Get a list of enabled EAP peer methods : Set to number of available methods Returns: List of enabled EAP peer methods

Definition at line 167 of file eap_methods.c.

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

Definition at line 54 of file eap_methods.c.

struct eap_method* eap_peer_method_alloc ( int  version,
int  vendor,
EapType  method,
const char *  name 
) [read]

Definition at line 283 of file eap_methods.c.

void eap_peer_method_free ( struct eap_method method)

eap_peer_method_free - Free EAP peer method structure : Method structure allocated with eap_peer_method_alloc()

Definition at line 302 of file eap_methods.c.

int eap_peer_method_register ( struct eap_method method)

eap_peer_method_register - Register an EAP peer 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 peer method needs to call this function to register itself as a supported EAP method.

Definition at line 317 of file eap_methods.c.

void eap_peer_unregister_methods ( void  )

eap_peer_unregister_methods - Unregister EAP peer methods

This function is called at program termination to unregister all EAP peer methods.

Definition at line 348 of file eap_methods.c.


Variable Documentation

struct eap_method* eap_methods = NULL [static]

Definition at line 25 of file eap_methods.c.



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:23