The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
src
modules
rlm_eap
types
rlm_eap_mschapv2
eap_mschapv2.h
Go to the documentation of this file.
1
#pragma once
2
RCSIDH
(eap_mschapv2_h,
"$Id: 3627859f77150f93f893cf1b7d8635822d8c99a1 $"
)
3
4
#include <freeradius-devel/eap/base.h>
5
6
/*
7
* draft-kamath-pppext-eap-mschapv2-00.txt says:
8
*
9
* Supplicant FreeRADIUS
10
* <-- challenge
11
* response -->
12
* <-- success
13
* success -->
14
*
15
* But what we often see is:
16
*
17
* Supplicant FreeRADIUS
18
* <-- challenge
19
* response -->
20
* <-- success
21
* ack -->
22
*/
23
#define FR_EAP_MSCHAPV2_ACK 0
24
#define FR_EAP_MSCHAPV2_CHALLENGE 1
25
#define FR_EAP_MSCHAPV2_RESPONSE 2
26
#define FR_EAP_MSCHAPV2_SUCCESS 3
27
#define FR_EAP_MSCHAPV2_FAILURE 4
28
#define FR_EAP_MSCHAPV2_CHGPASSWD 7
29
#define FR_EAP_MSCHAPV2_MAX_CODES 7
30
31
#define MSCHAPV2_HEADER_LEN 5
32
#define MSCHAPV2_CHALLENGE_LEN 16
33
#define MSCHAPV2_RESPONSE_LEN 50
34
35
typedef
struct
{
36
uint8_t
opcode
;
37
uint8_t
mschapv2_id
;
38
uint8_t
ms_length[2];
39
uint8_t
value_size
;
40
}
mschapv2_header_t
;
41
42
typedef
struct
{
43
int
code
;
44
bool
has_peer_challenge
;
45
uint8_t
auth_challenge[
MSCHAPV2_CHALLENGE_LEN
];
46
uint8_t
peer_challenge[
MSCHAPV2_CHALLENGE_LEN
];
47
fr_pair_list_t
mppe_keys
;
48
fr_pair_list_t
reply
;
49
}
mschapv2_opaque_t
;
RCSIDH
#define RCSIDH(h, id)
Definition:
build.h:482
mschapv2_header_t::opcode
uint8_t opcode
Definition:
eap_mschapv2.h:36
mschapv2_opaque_t::code
int code
Definition:
eap_mschapv2.h:43
MSCHAPV2_CHALLENGE_LEN
#define MSCHAPV2_CHALLENGE_LEN
Definition:
eap_mschapv2.h:32
mschapv2_opaque_t::has_peer_challenge
bool has_peer_challenge
Definition:
eap_mschapv2.h:44
mschapv2_header_t::mschapv2_id
uint8_t mschapv2_id
Definition:
eap_mschapv2.h:37
mschapv2_header_t::value_size
uint8_t value_size
Definition:
eap_mschapv2.h:39
mschapv2_opaque_t::reply
fr_pair_list_t reply
Definition:
eap_mschapv2.h:48
mschapv2_opaque_t::mppe_keys
fr_pair_list_t mppe_keys
Definition:
eap_mschapv2.h:47
mschapv2_header_t
Definition:
eap_mschapv2.h:35
mschapv2_opaque_t
Definition:
eap_mschapv2.h:42
uint8_t
unsigned char uint8_t
Definition:
merged_model.c:30
pair_list_s
Definition:
pair.h:52
Generated by
1.9.1