47 unsigned int identifier ) {
48 uint8_t ident_byte = identifier;
50 chap_update ( chap, &ident_byte,
sizeof ( ident_byte ) );
int chap_init(struct chap_response *chap, struct digest_algorithm *digest)
Initialise CHAP challenge/response.
void chap_respond(struct chap_response *chap)
Respond to the CHAP challenge.
uint8_t * response
CHAP response.
uint8_t * digest_context
Context used by the digest algorithm.
void chap_finish(struct chap_response *chap)
Free resources used by a CHAP response.
struct digest_algorithm * digest
Digest algorithm used for the response.
void chap_update(struct chap_response *chap, const void *data, size_t len)
Add data to the CHAP challenge.
size_t response_len
Length of CHAP response.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static void chap_set_identifier(struct chap_response *chap, unsigned int identifier)
Add identifier data to the CHAP challenge.
A message digest algorithm.
uint8_t data[48]
Additional event data.