Lines Matching full:id
54 int (*chap_verify_hook)(const char *name, const char *ourname, int id,
95 static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id,
100 static void chap_respond(ppp_pcb *pcb, int id,
102 static void chap_handle_status(ppp_pcb *pcb, int code, int id,
181 /* Start with a random ID value */ in chap_auth_peer()
182 pcb->chap_server.id = magic(); in chap_auth_peer()
274 p[1] = ++pcb->chap_server.id; in chap_generate_challenge()
282 static void chap_handle_response(ppp_pcb *pcb, int id, argument
298 if (id != pcb->chap_server.challenge[PPP_HDRLEN+1] || len < 2)
328 ok = (*verifier)(name, pcb->chap_server.name, id, pcb->chap_server.digest,
332 ok = chap_verify_response(pcb, name, pcb->chap_server.name, id, pcb->chap_server.digest,
360 outp[1] = id;
411 static int chap_verify_response(ppp_pcb *pcb, const char *name, const char *ourname, int id, argument
424 ok = digest->verify_response(pcb, id, name, secret, secret_len, challenge,
435 static void chap_respond(ppp_pcb *pcb, int id, argument
478 pcb->chap_client.digest->make_response(pcb, outp, id, pcb->chap_client.name, pkt,
489 outp[1] = id;
497 static void chap_handle_status(ppp_pcb *pcb, int code, int id, argument
500 LWIP_UNUSED_ARG(id);
536 unsigned char code, id; local
542 GETCHAR(id, pkt);
550 chap_respond(pcb, id, pkt, len);
554 chap_handle_response(pcb, id, pkt, len);
559 chap_handle_status(pcb, code, id, pkt, len);
595 int code, id, len; local
602 GETCHAR(id, p);
611 printer(arg, " id=0x%x", id);