The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Functions
eap_md5.h File Reference
#include <freeradius-devel/eap/base.h>
+ Include dependency graph for eap_md5.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MD5_PACKET
 
struct  md5_packet_t
 

Macros

#define FR_MD5_CHALLENGE   1
 
#define FR_MD5_FAILURE   4
 
#define FR_MD5_MAX_CODES   4
 
#define FR_MD5_RESPONSE   2
 
#define FR_MD5_SUCCESS   3
 
#define MD5_CHALLENGE_LEN   16
 
#define MD5_HEADER_LEN   4
 

Functions

int eap_md5_compose (eap_round_t *auth, MD5_PACKET *reply)
 
MD5_PACKETeap_md5_extract (request_t *request, eap_round_t *auth)
 
int eap_md5_verify (request_t *request, MD5_PACKET *pkt, fr_pair_t *pwd, uint8_t *ch)
 

Data Structure Documentation

◆ MD5_PACKET

struct MD5_PACKET

Definition at line 36 of file eap_md5.h.

Data Fields
unsigned char code
unsigned char id
unsigned short length
char * name
unsigned char * value
unsigned char value_size

◆ md5_packet_t

struct md5_packet_t

Definition at line 26 of file eap_md5.h.

Data Fields
uint8_t value_name[1]
uint8_t value_size

Macro Definition Documentation

◆ FR_MD5_CHALLENGE

#define FR_MD5_CHALLENGE   1

Definition at line 6 of file eap_md5.h.

◆ FR_MD5_FAILURE

#define FR_MD5_FAILURE   4

Definition at line 9 of file eap_md5.h.

◆ FR_MD5_MAX_CODES

#define FR_MD5_MAX_CODES   4

Definition at line 10 of file eap_md5.h.

◆ FR_MD5_RESPONSE

#define FR_MD5_RESPONSE   2

Definition at line 7 of file eap_md5.h.

◆ FR_MD5_SUCCESS

#define FR_MD5_SUCCESS   3

Definition at line 8 of file eap_md5.h.

◆ MD5_CHALLENGE_LEN

#define MD5_CHALLENGE_LEN   16

Definition at line 13 of file eap_md5.h.

◆ MD5_HEADER_LEN

#define MD5_HEADER_LEN   4

Definition at line 12 of file eap_md5.h.

Function Documentation

◆ eap_md5_compose()

int eap_md5_compose ( eap_round_t auth,
MD5_PACKET reply 
)

Definition at line 179 of file eap_md5.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_md5_extract()

MD5_PACKET* eap_md5_extract ( request_t request,
eap_round_t auth 
)

Definition at line 49 of file eap_md5.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eap_md5_verify()

int eap_md5_verify ( request_t request,
MD5_PACKET pkt,
fr_pair_t pwd,
uint8_t ch 
)

Definition at line 129 of file eap_md5.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: