iPXE
|
MS-CHAPv2 authentication self-tests. More...
Go to the source code of this file.
Data Structures | |
struct | mschapv2_test |
An MS-CHAPv2 test. More... | |
Macros | |
#define | DATA(...) { __VA_ARGS__ } |
Define inline data. More... | |
#define | MSCHAPV2_TEST(name, USERNAME, PASSWORD, CHALLENGE, PEER, RESPONSE, AUTH) |
Define an MS-CHAPv2 test. More... | |
#define | mschapv2_ok(test) mschapv2_okx ( test, __FILE__, __LINE__ ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
MSCHAPV2_TEST (rfc2759_test, "User", "clientPass", DATA(0x5b, 0x5d, 0x7c, 0x7d, 0x7b, 0x3f, 0x2f, 0x3e, 0x3c, 0x2c, 0x60, 0x21, 0x32, 0x26, 0x26, 0x28), DATA(0x21, 0x40, 0x23, 0x24, 0x25, 0x5e, 0x26, 0x2a, 0x28, 0x29, 0x5f, 0x2b, 0x3a, 0x33, 0x7c, 0x7e), DATA(0x21, 0x40, 0x23, 0x24, 0x25, 0x5e, 0x26, 0x2a, 0x28, 0x29, 0x5f, 0x2b, 0x3a, 0x33, 0x7c, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x30, 0x9e, 0xcd, 0x8d, 0x70, 0x8b, 0x5e, 0xa0, 0x8f, 0xaa, 0x39, 0x81, 0xcd, 0x83, 0x54, 0x42, 0x33, 0x11, 0x4a, 0x3d, 0x85, 0xd6, 0xdf, 0x00), "S=407A5589115FD0D6209F510FE9C04566932CDA56") | |
RFC 2759 section 9.2 test case. More... | |
static void | mschapv2_okx (struct mschapv2_test *test, const char *file, unsigned int line) |
Report an MS-CHAPv2 test result. More... | |
static void | mschapv2_test_exec (void) |
Perform MS-CHAPv2 self-test. More... | |
Variables | |
struct self_test mschapv2_test | __self_test |
MS-CHAPv2 self-test. More... | |
MS-CHAPv2 authentication self-tests.
Definition in file mschapv2_test.c.
#define DATA | ( | ... | ) | { __VA_ARGS__ } |
Define inline data.
Definition at line 57 of file mschapv2_test.c.
Define an MS-CHAPv2 test.
Definition at line 60 of file mschapv2_test.c.
#define mschapv2_ok | ( | test | ) | mschapv2_okx ( test, __FILE__, __LINE__ ) |
Definition at line 128 of file mschapv2_test.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
MSCHAPV2_TEST | ( | rfc2759_test | , |
"User" | , | ||
"clientPass" | , | ||
DATA(0x5b, 0x5d, 0x7c, 0x7d, 0x7b, 0x3f, 0x2f, 0x3e, 0x3c, 0x2c, 0x60, 0x21, 0x32, 0x26, 0x26, 0x28) | , | ||
DATA(0x21, 0x40, 0x23, 0x24, 0x25, 0x5e, 0x26, 0x2a, 0x28, 0x29, 0x5f, 0x2b, 0x3a, 0x33, 0x7c, 0x7e) | , | ||
DATA(0x21, 0x40, 0x23, 0x24, 0x25, 0x5e, 0x26, 0x2a, 0x28, 0x29, 0x5f, 0x2b, 0x3a, 0x33, 0x7c, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x30, 0x9e, 0xcd, 0x8d, 0x70, 0x8b, 0x5e, 0xa0, 0x8f, 0xaa, 0x39, 0x81, 0xcd, 0x83, 0x54, 0x42, 0x33, 0x11, 0x4a, 0x3d, 0x85, 0xd6, 0xdf, 0x00) | |||
) |
RFC 2759 section 9.2 test case.
|
static |
Report an MS-CHAPv2 test result.
test | Authentication test |
file | Test code file |
line | Test code line |
Definition at line 112 of file mschapv2_test.c.
References memcmp(), mschapv2_auth(), mschapv2_response(), okx, and test.
|
static |
Perform MS-CHAPv2 self-test.
Definition at line 135 of file mschapv2_test.c.
References mschapv2_ok.
struct self_test mschapv2_test __self_test |
MS-CHAPv2 self-test.
Definition at line 141 of file mschapv2_test.c.