Lines Matching defs:code
10 * 1. Redistributions of source code must retain the above copyright
122 static void chap_handle_response(struct chap_server_state *ss, int code,
130 static void chap_handle_status(struct chap_client_state *cs, int code, int id,
208 if (dp->code == digest_code)
238 if (dp->code == digest_code)
394 ss->digest->code,
491 chap_handle_status(struct chap_client_state *cs, int code, int id,
501 if (code == CHAP_SUCCESS) {
505 code = CHAP_FAILURE;
520 if (code == CHAP_SUCCESS)
521 auth_withpeer_success(0, PPP_CHAP, cs->digest->code);
534 unsigned char code, id;
539 GETCHAR(code, pkt);
546 switch (code) {
555 chap_handle_status(cs, code, id, pkt, len);
592 int code, id, len;
598 GETCHAR(code, p);
604 if (code >= 1 && code <= sizeof(chap_code_names) / sizeof(char *))
605 printer(arg, " %s", chap_code_names[code-1]);
607 printer(arg, " code=0x%x", code);
610 switch (code) {