49 const void *req,
size_t req_len ) {
51 const struct eap_md5 *md5req = req;
62 if ( req_len <
sizeof ( *md5req ) ) {
63 DBGC (
netdev,
"EAP %s underlength MD5-Challenge:\n",
69 if ( ( req_len -
sizeof ( *md5req ) ) < md5req->
len ) {
70 DBGC (
netdev,
"EAP %s truncated MD5-Challenge:\n",
79 DBGC (
netdev,
"EAP %s could not initialise CHAP: %s\n",
85 &password_setting, &secret );
86 if ( secret_len < 0 ) {
96 md5rsp.len =
sizeof ( md5rsp.value );
101 sizeof ( md5rsp ) ) ) != 0 )
struct arbelprm_rc_send_wqe rc
pseudo_bit_t value[0x00020]
#define assert(condition)
Assert a condition at run-time.
void chap_respond(struct chap_response *chap)
Respond to the CHAP challenge.
void chap_update(struct chap_response *chap, const void *data, size_t len)
Add data to the CHAP challenge.
void chap_finish(struct chap_response *chap)
Free resources used by a CHAP response.
int chap_init(struct chap_response *chap, struct digest_algorithm *digest)
Initialise CHAP challenge/response.
static void chap_set_identifier(struct chap_response *chap, unsigned int identifier)
Add identifier data to the CHAP challenge.
int eap_tx_response(struct eap_supplicant *supplicant, const void *rsp, size_t rsp_len)
Transmit EAP response.
Extensible Authentication Protocol.
#define EAP_TYPE_MD5
EAP MD5 challenge request/response.
#define __eap_method
Declare an EAP method.
static int eap_rx_md5(struct eap_supplicant *supplicant, const void *req, size_t req_len)
Handle EAP MD5-Challenge.
static struct net_device * netdev
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define EINVAL
Invalid argument.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
struct digest_algorithm md5_algorithm
MD5 algorithm.
#define MD5_DIGEST_SIZE
MD5 digest size.
static struct settings * netdev_settings(struct net_device *netdev)
Get per-netdevice configuration settings block.
static void(* free)(struct refcnt *refcnt))
int fetch_raw_setting_copy(struct settings *settings, const struct setting *setting, void **data)
Fetch value of setting.
char * strerror(int errno)
Retrieve string representation of error number.
uint8_t * response
CHAP response.
size_t response_len
Length of CHAP response.
EAP MD5 challenge request/response type data.
uint8_t id
ID for current request/response.
struct net_device * netdev
Network device.