Lines Matching defs:CHALLENGE
72 #define CHALLENGE htons(11)
106 static uint8_t challenge[CHALLENGE_SIZE];
334 if (fd == -1 || read(fd, challenge, CHALLENGE_SIZE) != CHALLENGE_SIZE) {
340 add_attribute_raw(CHALLENGE, challenge, CHALLENGE_SIZE);
373 static uint8_t *compute_response(uint8_t type, void *challenge, int size)
380 MD5_Update(&ctx, challenge, size);
393 return !memcmp(compute_response(SCCRP, challenge, CHALLENGE_SIZE),
402 uint8_t challenge[MAX_ATTRIBUTE_SIZE];
403 int size = get_attribute_raw(CHALLENGE, challenge, MAX_ATTRIBUTE_SIZE);
405 uint8_t *response = compute_response(SCCCN, challenge, size);
437 "valid challenge response" : "assigned tunnel");