radius.c File Reference

Host AP (software wireless LAN access point) user space daemon for Host AP kernel driver / RADIUS client. More...

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include "common.h"
#include "radius.h"
#include "md5.h"
#include "crypto.h"

Include dependency graph for radius.c:

Go to the source code of this file.

Defines

#define RADIUS_ATTRS   (sizeof(radius_attrs) / sizeof(radius_attrs[0]))

Functions

radius_msg * radius_msg_new (u8 code, u8 identifier)
int radius_msg_initialize (struct radius_msg *msg, size_t init_len)
void radius_msg_set_hdr (struct radius_msg *msg, u8 code, u8 identifier)
void radius_msg_free (struct radius_msg *msg)
void radius_msg_dump (struct radius_msg *msg)
int radius_msg_finish (struct radius_msg *msg, u8 *secret, size_t secret_len)
int radius_msg_finish_srv (struct radius_msg *msg, const u8 *secret, size_t secret_len, const u8 *req_authenticator)
void radius_msg_finish_acct (struct radius_msg *msg, u8 *secret, size_t secret_len)
radius_attr_hdr * radius_msg_add_attr (struct radius_msg *msg, u8 type, const u8 *data, size_t data_len)
radius_msg * radius_msg_parse (const u8 *data, size_t len)
int radius_msg_add_eap (struct radius_msg *msg, const u8 *data, size_t data_len)
u8 * radius_msg_get_eap (struct radius_msg *msg, size_t *eap_len)
int radius_msg_verify_msg_auth (struct radius_msg *msg, const u8 *secret, size_t secret_len, const u8 *req_auth)
int radius_msg_verify (struct radius_msg *msg, const u8 *secret, size_t secret_len, struct radius_msg *sent_msg, int auth)
int radius_msg_copy_attr (struct radius_msg *dst, struct radius_msg *src, u8 type)
void radius_msg_make_authenticator (struct radius_msg *msg, u8 *data, size_t len)
radius_ms_mppe_keys * radius_msg_get_ms_keys (struct radius_msg *msg, struct radius_msg *sent_msg, u8 *secret, size_t secret_len)
radius_ms_mppe_keys * radius_msg_get_cisco_keys (struct radius_msg *msg, struct radius_msg *sent_msg, u8 *secret, size_t secret_len)
int radius_msg_add_mppe_keys (struct radius_msg *msg, const u8 *req_authenticator, const u8 *secret, size_t secret_len, const u8 *send_key, size_t send_key_len, const u8 *recv_key, size_t recv_key_len)
radius_attr_hdr * radius_msg_add_attr_user_password (struct radius_msg *msg, u8 *data, size_t data_len, u8 *secret, size_t secret_len)
int radius_msg_get_attr (struct radius_msg *msg, u8 type, u8 *buf, size_t len)
int radius_msg_get_attr_ptr (struct radius_msg *msg, u8 type, u8 **buf, size_t *len, const u8 *start)
int radius_msg_count_attr (struct radius_msg *msg, u8 type, int min_len)


Detailed Description

Host AP (software wireless LAN access point) user space daemon for Host AP kernel driver / RADIUS client.

Copyright
Copyright (c) 2002-2005, Jouni Malinen <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file radius.c.


Generated on Sat May 6 21:18:37 2006 for wpa_supplicant by  doxygen 1.4.2