iPXE
|
EAP MS-CHAPv2 authentication method. More...
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <byteswap.h>
#include <ipxe/mschapv2.h>
#include <ipxe/eap.h>
Go to the source code of this file.
Data Structures | |
struct | eap_mschapv2_request |
An EAP MS-CHAPv2 request message. More... | |
struct | eap_mschapv2_response |
An EAP MS-CHAPv2 response message. More... | |
struct | eap_mschapv2_success_request |
An EAP MS-CHAPv2 success request message. More... | |
struct | eap_mschapv2_success_response |
An EAP MS-CHAPv2 success response message. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | eap_rx_mschapv2_request (struct eap_supplicant *supplicant, const struct eap_mschapv2 *hdr, size_t len) |
Handle EAP MS-CHAPv2 request. More... | |
static int | eap_rx_mschapv2_success (struct eap_supplicant *supplicant, const struct eap_mschapv2 *hdr, size_t len) |
Handle EAP MS-CHAPv2 success request. More... | |
static int | eap_rx_mschapv2 (struct eap_supplicant *supplicant, const void *req, size_t req_len) |
Handle EAP MS-CHAPv2. More... | |
Variables | |
struct eap_method eap_mschapv2_method | __eap_method |
EAP MS-CHAPv2 method. More... | |
EAP MS-CHAPv2 authentication method.
EAP-MSCHAPv2 was described in a draft RFC first published in 2002 (draft-kamath-pppext-eap-mschapv2-02.txt). The draft eventually expired in 2007 without becoming an official RFC, quite possibly because the protocol design was too ugly to be called an IETF standard. It is, however, fairly widely used.
Definition in file eap_mschapv2.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Handle EAP MS-CHAPv2 request.
supplicant | EAP supplicant |
hdr | EAP-MSCHAPv2 header |
len | Message length |
rc | Return status code |
Definition at line 88 of file eap_mschapv2.c.
References mschapv2_challenge::byte, eap_mschapv2::code, container_of, DBGC, DBGC_HDA, EAP_CODE_RESPONSE, eap_tx_response(), EINVAL, ENOMEM, fetch_string_setting_copy(), free, eap_mschapv2_response::hdr, eap_mschapv2_request::hdr, hdr, htons, eap_mschapv2::id, len, eap_mschapv2_response::len, eap_mschapv2::len, malloc(), memcpy(), mschapv2_response(), eap_mschapv2_request::msg, eap_mschapv2_response::msg, eap_mschapv2_response::name, net_device::name, netdev, eap_supplicant::netdev, netdev_settings(), password, peer, random(), rc, strerror(), and username.
Referenced by eap_rx_mschapv2().
|
static |
Handle EAP MS-CHAPv2 success request.
supplicant | EAP supplicant |
hdr | EAP-MSCHAPv2 header |
len | Message length |
rc | Return status code |
Definition at line 180 of file eap_mschapv2.c.
References assert(), eap_mschapv2_success_response::code, container_of, EAP_CODE_SUCCESS, eap_tx_response(), hdr, and len.
Referenced by eap_rx_mschapv2().
|
static |
Handle EAP MS-CHAPv2.
supplicant | EAP supplicant |
req | Request type data |
req_len | Length of request type data |
rc | Return status code |
Definition at line 220 of file eap_mschapv2.c.
References DBGC, DBGC_HDA, EAP_CODE_REQUEST, EAP_CODE_SUCCESS, eap_rx_mschapv2_request(), eap_rx_mschapv2_success(), EINVAL, ENOTSUP, hdr, net_device::name, netdev, and eap_supplicant::netdev.
struct eap_method eap_mschapv2_method __eap_method |
EAP MS-CHAPv2 method.
Definition at line 248 of file eap_mschapv2.c.