Home | History | Annotate | Download | only in mtpd

Lines Matching defs:CHALLENGE

73 #define CHALLENGE               htons(11)
107 static uint8_t challenge[CHALLENGE_SIZE];
335 if (fd == -1 || read(fd, challenge, CHALLENGE_SIZE) != CHALLENGE_SIZE) {
341 add_attribute_raw(CHALLENGE, challenge, CHALLENGE_SIZE);
374 static uint8_t *compute_response(uint8_t type, void *challenge, int size)
381 MD5_Update(&ctx, challenge, size);
394 return !memcmp(compute_response(SCCRP, challenge, CHALLENGE_SIZE),
403 uint8_t challenge[MAX_ATTRIBUTE_SIZE];
404 int size = get_attribute_raw(CHALLENGE, challenge, MAX_ATTRIBUTE_SIZE);
406 uint8_t *response = compute_response(SCCCN, challenge, size);
438 "valid challenge response" : "assigned tunnel");