wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
radius_server.h File Reference

RADIUS authentication server. More...

Go to the source code of this file.

Data Structures

struct  radius_server_conf
 RADIUS server configuration. More...
 

Functions

struct radius_server_dataradius_server_init (struct radius_server_conf *conf)
 Initialize RADIUS server. More...
 
void radius_server_erp_flush (struct radius_server_data *data)
 Flush all ERP keys. More...
 
void radius_server_deinit (struct radius_server_data *data)
 Deinitialize RADIUS server. More...
 
int radius_server_get_mib (struct radius_server_data *data, char *buf, size_t buflen)
 Get RADIUS server MIB information. More...
 
void radius_server_eap_pending_cb (struct radius_server_data *data, void *ctx)
 Pending EAP data notification. More...
 

Detailed Description

RADIUS authentication server.

Function Documentation

void radius_server_deinit ( struct radius_server_data data)

Deinitialize RADIUS server.

Parameters
dataRADIUS server context from radius_server_init()
void radius_server_eap_pending_cb ( struct radius_server_data data,
void *  ctx 
)

Pending EAP data notification.

Parameters
dataRADIUS server context from radius_server_init()
ctxPending EAP context pointer

This function is used to notify EAP server module that a pending operation has been completed and processing of the EAP session can proceed.

void radius_server_erp_flush ( struct radius_server_data data)

Flush all ERP keys.

Parameters
dataRADIUS server context from radius_server_init()
int radius_server_get_mib ( struct radius_server_data data,
char *  buf,
size_t  buflen 
)

Get RADIUS server MIB information.

Parameters
dataRADIUS server context from radius_server_init()
bufBuffer for returning the MIB data in text format
buflenbuf length in octets
Returns
Number of octets written into buf
struct radius_server_data* radius_server_init ( struct radius_server_conf conf)

Initialize RADIUS server.

Parameters
confConfiguration for the RADIUS server
Returns
Pointer to private RADIUS server context or NULL on failure

This initializes a RADIUS server instance and returns a context pointer that will be used in other calls to the RADIUS server module. The server can be deinitialize by calling radius_server_deinit().