EDGESEC
0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
|
RADIUS authentication server. More...
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdbool.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <eloop.h>
#include "../utils/os.h"
#include "radius_config.h"
Go to the source code of this file.
Data Structures | |
struct | radius_server_counters |
struct | radius_session |
struct | radius_client |
struct | radius_server_data |
Functions | |
struct radius_server_data * | radius_server_init (struct eloop_data *eloop, int auth_port, struct radius_client *clients) |
void | radius_server_deinit (struct radius_server_data *data) |
int | radius_server_get_mib (struct radius_server_data *data, char *buf, size_t buflen) |
struct radius_client * | init_radius_client (struct radius_conf *conf, mac_conn_fn mac_conn_fn, void *mac_conn_arg) |
void | radius_server_free_clients (struct radius_server_data *data, struct radius_client *clients) |
RADIUS authentication server.
struct radius_client* init_radius_client | ( | struct radius_conf * | conf, |
mac_conn_fn | mac_conn_fn, | ||
void * | mac_conn_arg | ||
) |
void radius_server_deinit | ( | struct radius_server_data * | data | ) |
radius_server_deinit - Deinitialize RADIUS server @data: RADIUS server context from radius_server_init()
void radius_server_free_clients | ( | struct radius_server_data * | data, |
struct radius_client * | clients | ||
) |
int radius_server_get_mib | ( | struct radius_server_data * | data, |
char * | buf, | ||
size_t | buflen | ||
) |
radius_server_get_mib - Get RADIUS server MIB information @data: RADIUS server context from radius_server_init() @buf: Buffer for returning the MIB data in text format @buflen: buf length in octets Returns: Number of octets written into buf
struct radius_server_data* radius_server_init | ( | struct eloop_data * | eloop, |
int | auth_port, | ||
struct radius_client * | clients | ||
) |
radius_server_init - Initialize RADIUS server @conf: Configuration 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().