Lines Matching refs:chap_client
128 memset(&pcb->chap_client, 0, sizeof(chap_client_state)); in chap_init()
140 pcb->chap_client.flags |= LOWERUP; in chap_lowerup()
150 pcb->chap_client.flags = 0; in chap_lowerdown()
200 if (pcb->chap_client.flags & AUTH_STARTED) { in chap_auth_with_peer()
212 pcb->chap_client.digest = dp; in chap_auth_with_peer()
213 pcb->chap_client.name = our_name; in chap_auth_with_peer()
214 pcb->chap_client.flags |= AUTH_STARTED; in chap_auth_with_peer()
452 if ((pcb->chap_client.flags & (LOWERUP | AUTH_STARTED)) != (LOWERUP | AUTH_STARTED))
469 if (!get_secret(pcb, pcb->chap_client.name, rname, secret, &secret_len, 0)) {
478 pcb->chap_client.digest->make_response(pcb, outp, id, pcb->chap_client.name, pkt,
479 secret, secret_len, pcb->chap_client.priv);
483 nlen = strlen(pcb->chap_client.name);
484 memcpy(outp + clen + 1, pcb->chap_client.name, nlen);
502 if ((pcb->chap_client.flags & (AUTH_DONE|AUTH_STARTED|LOWERUP))
505 pcb->chap_client.flags |= AUTH_DONE;
509 if (pcb->chap_client.digest->check_success != NULL) {
510 if (!(*pcb->chap_client.digest->check_success)(pcb, pkt, len, pcb->chap_client.priv))
515 if (pcb->chap_client.digest->handle_failure != NULL)
516 (*pcb->chap_client.digest->handle_failure)(pcb, pkt, len);
527 auth_withpeer_success(pcb, PPP_CHAP, pcb->chap_client.digest->code);
529 pcb->chap_client.flags |= AUTH_FAILED;
578 if ((pcb->chap_client.flags & (AUTH_STARTED|AUTH_DONE)) == AUTH_STARTED) {
579 pcb->chap_client.flags &= ~AUTH_STARTED;