All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
eap_md5.h File Reference
#include "eap.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


#define MD5_CHALLENGE_LEN   16
#define MD5_HEADER_LEN   4
#define PW_MD5_CHALLENGE   1
#define PW_MD5_FAILURE   4
#define PW_MD5_MAX_CODES   4
#define PW_MD5_RESPONSE   2
#define PW_MD5_SUCCESS   3


typedef struct md5_packet MD5_PACKET
typedef struct md5_packet_t md5_packet_t


int eapmd5_compose (eap_round_t *auth, MD5_PACKET *reply)
MD5_PACKETeapmd5_extract (eap_round_t *auth)
int eapmd5_verify (MD5_PACKET *pkt, VALUE_PAIR *pwd, uint8_t *ch)

Data Structure Documentation

struct md5_packet

Definition at line 38 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
struct md5_packet_t

Definition at line 28 of file eap_md5.h.

Data Fields
uint8_t value_name[1]
uint8_t value_size

Macro Definition Documentation

#define MD5_CHALLENGE_LEN   16

Definition at line 15 of file eap_md5.h.

#define MD5_HEADER_LEN   4

Definition at line 14 of file eap_md5.h.

#define PW_MD5_CHALLENGE   1

Definition at line 8 of file eap_md5.h.

#define PW_MD5_FAILURE   4

Definition at line 11 of file eap_md5.h.

#define PW_MD5_MAX_CODES   4

Definition at line 12 of file eap_md5.h.

#define PW_MD5_RESPONSE   2

Definition at line 9 of file eap_md5.h.

#define PW_MD5_SUCCESS   3

Definition at line 10 of file eap_md5.h.

Typedef Documentation

typedef struct md5_packet MD5_PACKET
typedef struct md5_packet_t md5_packet_t

Function Documentation

int eapmd5_compose ( eap_round_t auth,
MD5_PACKET reply 

Definition at line 180 of file eap_md5.c.

+ Here is the caller graph for this function:

MD5_PACKET* eapmd5_extract ( eap_round_t auth)

Definition at line 50 of file eap_md5.c.

+ Here is the caller graph for this function:

int eapmd5_verify ( MD5_PACKET pkt,
uint8_t *  ch 

Definition at line 130 of file eap_md5.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: