48 unsigned int identifier ) {
49 uint8_t ident_byte = identifier;
51 chap_update ( chap, &ident_byte,
sizeof ( ident_byte ) );
void chap_respond(struct chap_response *chap)
Respond to the CHAP challenge.
static void chap_set_identifier(struct chap_response *chap, unsigned int identifier)
Add identifier data 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.
uint8_t data[48]
Additional event data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
uint8_t * digest_context
Context used by the digest algorithm.
uint8_t * response
CHAP response.
struct digest_algorithm * digest
Digest algorithm used for the response.
size_t response_len
Length of CHAP response.
A message digest algorithm.