37RCSID(
"$Id: 5e5a47797235a024dd10ee59906ae75b5791e841 $")
41#include <freeradius-devel/eap/base.h>
44#include <freeradius-devel/util/md5.h>
128 REDEBUG(
"Expected 16 bytes of response to challenge, got %d", packet->
value_size);
145 memcpy(ptr, password->vp_strvalue, password->vp_length);
146 ptr += password->vp_length;
147 len += password->vp_length;
179 if (reply->
code < 3) {
eap_packet_t * response
Packet we received from the peer.
eap_packet_t * request
Packet we will send to the peer.
Contains a pair of request and response packets.
int eap_md5_verify(request_t *request, MD5_PACKET *packet, fr_pair_t *password, uint8_t *challenge)
int eap_md5_compose(eap_round_t *eap_round, MD5_PACKET *reply)
MD5_PACKET * eap_md5_extract(request_t *request, eap_round_t *eap_round)
#define MD5_CHALLENGE_LEN
void fr_md5_calc(uint8_t out[static MD5_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
Perform a single digest operation on a single input buffer.
int fr_digest_cmp(uint8_t const *a, uint8_t const *b, size_t length)
Do a comparison of two authentication digests by comparing the FULL data.
Stores an attribute, a value and various bits of other data.
#define FR_MAX_STRING_LEN