Symbol: chap
sys/net/if_spppsubr.c
3434
sppp_auth_send(&chap, sp, CHAP_RESPONSE, h->ident,
sys/net/if_spppsubr.c
3557
sppp_auth_send(&chap, sp, CHAP_FAILURE, h->ident,
sys/net/if_spppsubr.c
3560
chap.tld(sp);
sys/net/if_spppsubr.c
3566
sppp_auth_send(&chap, sp, CHAP_SUCCESS, h->ident,
sys/net/if_spppsubr.c
3570
sppp_cp_change_state(&chap, sp, STATE_OPENED);
sys/net/if_spppsubr.c
3571
chap.tlu(sp);
sys/net/if_spppsubr.c
3606
chap.scr(sp);
sys/net/if_spppsubr.c
3608
sppp_cp_change_state(&chap, sp, STATE_REQ_SENT);
sys/net/if_spppsubr.c
3617
sppp_cp_change_state(&chap, sp, STATE_CLOSED);
sys/net/if_spppsubr.c
3638
chap.tld(sp);
sys/net/if_spppsubr.c
3639
sppp_cp_change_state(&chap, sp, STATE_CLOSED);
sys/net/if_spppsubr.c
3650
chap.scr(sp);
sys/net/if_spppsubr.c
3652
sppp_cp_change_state(&chap, sp, STATE_REQ_SENT);
sys/net/if_spppsubr.c
3724
UNTIMEOUT(chap.TO, (void *)sp, sp->ch[IDX_CHAP]);
sys/net/if_spppsubr.c
3741
sppp_auth_send(&chap, sp, CHAP_CHALLENGE, sp->confid[IDX_CHAP],
sys/net/if_spppsubr.c
392
static const struct cp chap = {
sys/net/if_spppsubr.c
405
&chap, /* IDX_CHAP */
usr.sbin/npppd/npppd/chap.c
112
static void chap_authenticate(chap *_this, u_char *, int);
usr.sbin/npppd/npppd/chap.c
113
static void chap_failure(chap *, const char *, int);
usr.sbin/npppd/npppd/chap.c
114
static void chap_response (chap *, int, u_char *, int);
usr.sbin/npppd/npppd/chap.c
115
static void chap_create_challenge (chap *);
usr.sbin/npppd/npppd/chap.c
116
static void chap_send_error (chap *, const char *);
usr.sbin/npppd/npppd/chap.c
117
static void md5chap_authenticate (chap *, int, char *, u_char *, int, u_char *);
usr.sbin/npppd/npppd/chap.c
118
static void mschapv2_send_error (chap *, int, int);
usr.sbin/npppd/npppd/chap.c
119
static void mschapv2_authenticate (chap *, int, char *, u_char *, int, u_char *);
usr.sbin/npppd/npppd/chap.c
121
static void chap_radius_authenticate (chap *, int, char *, u_char *, int, u_char *);
usr.sbin/npppd/npppd/chap.c
125
static void chap_log (chap *, uint32_t, const char *, ...) __printflike(3,4);
usr.sbin/npppd/npppd/chap.c
129
chap_init(chap *_this, npppd_ppp *ppp)
usr.sbin/npppd/npppd/chap.c
136
memset(_this, 0, sizeof(chap));
usr.sbin/npppd/npppd/chap.c
154
chap_start(chap *_this)
usr.sbin/npppd/npppd/chap.c
242
chap_stop(chap *_this)
usr.sbin/npppd/npppd/chap.c
256
chap_input(chap *_this, u_char *pktp, int len)
usr.sbin/npppd/npppd/chap.c
350
chap_failure(chap *_this, const char *msg, int mschapv2err)
usr.sbin/npppd/npppd/chap.c
364
chap_authenticate(chap *_this, u_char *response, int lresponse)
usr.sbin/npppd/npppd/chap.c
428
chap_response(chap *_this, int authok, u_char *pktp, int lpktp)
usr.sbin/npppd/npppd/chap.c
465
chap_create_challenge(chap *_this)
usr.sbin/npppd/npppd/chap.c
478
chap_proxy_authen_prepare(chap *_this, dialin_proxy_info *dpi)
usr.sbin/npppd/npppd/chap.c
534
md5chap_authenticate(chap *_this, int id, char *username, u_char *challenge,
usr.sbin/npppd/npppd/chap.c
579
chap_send_error(chap *_this, const char *msg)
usr.sbin/npppd/npppd/chap.c
599
mschapv2_send_error(chap *_this, int error, int can_retry)
usr.sbin/npppd/npppd/chap.c
628
mschapv2_authenticate(chap *_this, int id, char *username, u_char *challenge,
usr.sbin/npppd/npppd/chap.c
714
chap_radius_authenticate(chap *_this, int id, char *username,
usr.sbin/npppd/npppd/chap.c
821
chap *_this;
usr.sbin/npppd/npppd/chap.c
956
chap_log(chap *_this, uint32_t prio, const char *fmt, ...)
usr.sbin/npppd/npppd/lcp.c
105
(!psm_opt_is_enabled(lcp, chap) || psm_opt_is_rejected(lcp, chap)) && \
usr.sbin/npppd/npppd/lcp.c
1068
psm_opt_set_enabled(_this, chap, 1);
usr.sbin/npppd/npppd/lcp.c
1128
psm_opt_set_rejected(_this, chap, 1);
usr.sbin/npppd/npppd/lcp.c
1139
chap_proxy_authen_prepare(&_this->fsm.ppp->chap, dpi);
usr.sbin/npppd/npppd/lcp.c
1303
LCP_OPT_ACCEPTED(chap);
usr.sbin/npppd/npppd/lcp.c
203
else if (psm_opt_is_accepted(_this, chap))
usr.sbin/npppd/npppd/lcp.c
328
if (psm_opt_is_rejected(_this, chap))
usr.sbin/npppd/npppd/lcp.c
334
psm_opt_set_requested(_this, chap, 1);
usr.sbin/npppd/npppd/lcp.c
596
LCP_OPT_ACCEPTED(chap);
usr.sbin/npppd/npppd/lcp.c
684
psm_opt_set_rejected(_this, chap, 1);
usr.sbin/npppd/npppd/lcp.c
709
if (psm_opt_is_requested(_this, chap))
usr.sbin/npppd/npppd/lcp.c
711
chap, 1);
usr.sbin/npppd/npppd/lcp.c
832
LCP_OPT_REJECTED(chap);
usr.sbin/npppd/npppd/ppp.c
166
chap_init(&_this->chap, _this);
usr.sbin/npppd/npppd/ppp.c
284
chap_stop(&_this->chap);
usr.sbin/npppd/npppd/ppp.c
440
chap_stop(&_this->chap);
usr.sbin/npppd/npppd/ppp.c
490
chap_start(&_this->chap);
usr.sbin/npppd/npppd/ppp.c
900
chap_input(&_this->chap, inp, lpkt - (inp - pkt));
usr.sbin/npppd/npppd/ppp.h
239
uint8_t chap;
usr.sbin/npppd/npppd/ppp.h
483
chap chap; /** chap */
usr.sbin/npppd/npppd/ppp.h
801
void chap_init (chap *, npppd_ppp *);
usr.sbin/npppd/npppd/ppp.h
802
void chap_stop (chap *);
usr.sbin/npppd/npppd/ppp.h
803
void chap_start (chap *);
usr.sbin/npppd/npppd/ppp.h
804
void chap_input (chap *, u_char *, int);
usr.sbin/npppd/npppd/ppp.h
805
int chap_proxy_authen_prepare (chap *, dialin_proxy_info *);
usr.sbin/pppd/chap.c
117
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
136
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
163
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
249
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
274
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
297
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
315
chap_state *cstate = &chap[unit];
usr.sbin/pppd/chap.c
97
chap_state chap[NUM_PPP]; /* CHAP state; one for each unit */
usr.sbin/pppd/chap.h
132
extern chap_state chap[];
usr.sbin/pppd/options.c
1946
return int_option(*argv, &chap[0].timeouttime);
usr.sbin/pppd/options.c
1952
return int_option(*argv, &chap[0].max_transmits);
usr.sbin/pppd/options.c
1958
return int_option(*argv, &chap[0].chal_interval);
usr.sbin/radiusd/eap2mschap_local.h
62
struct chap chap;
usr.sbin/radiusd/eap2mschap_local.h
68
struct chap chap;
usr.sbin/radiusd/eap2mschap_local.h
75
static_assert(offsetof(struct eap_mschap_challenge, chap) == 5, "");
usr.sbin/radiusd/eap2mschap_local.h
82
struct chap chap;
usr.sbin/radiusd/eap2mschap_local.h
92
static_assert(offsetof(struct eap_mschap_response, chap) == 5, "");
usr.sbin/radiusd/radiusd_eap2mschap.c
371
chall->chap.code = CHAP_CHALLENGE;
usr.sbin/radiusd/radiusd_eap2mschap.c
372
chall->chap.id = ++req->chap_id;
usr.sbin/radiusd/radiusd_eap2mschap.c
373
chall->chap.length = htons(msgsiz -
usr.sbin/radiusd/radiusd_eap2mschap.c
374
offsetof(struct eap_mschap_challenge, chap));
usr.sbin/radiusd/radiusd_eap2mschap.c
455
RADIUS_PACKET *pkt, struct eap_chap *chap)
usr.sbin/radiusd/radiusd_eap2mschap.c
462
eapsiz = ntohs(chap->eap.length);
usr.sbin/radiusd/radiusd_eap2mschap.c
463
switch (chap->chap.code) {
usr.sbin/radiusd/radiusd_eap2mschap.c
473
resp = (struct eap_mschap_response *)chap;
usr.sbin/radiusd/radiusd_eap2mschap.c
475
htons(resp->chap.length) <
usr.sbin/radiusd/radiusd_eap2mschap.c
477
offsetof(struct eap_mschap_response, chap)) {
usr.sbin/radiusd/radiusd_eap2mschap.c
483
ntohs(resp->chap.length), resp->chap.value[9]);
usr.sbin/radiusd/radiusd_eap2mschap.c
491
namelen = ntohs(resp->chap.length) -
usr.sbin/radiusd/radiusd_eap2mschap.c
493
offsetof(struct eap_mschap_response, chap));
usr.sbin/radiusd/radiusd_eap2mschap.c
508
rr.ident = resp->chap.id;
usr.sbin/radiusd/radiusd_eap2mschap.c
542
if (chap->eap.code != EAP_CODE_RESPONSE) {
usr.sbin/radiusd/radiusd_eap2mschap.c
546
sizeof(buf)), chap->eap.code);
usr.sbin/radiusd/radiusd_eap2mschap.c
610
req->state, sizeof(req->state), buf, sizeof(buf)), chap->chap.code,
usr.sbin/radiusd/radiusd_eap2mschap.c
626
struct eap_chap chap;
usr.sbin/radiusd/radiusd_eap2mschap.c
671
eapsiz = offsetof(struct eap_chap, chap.value[respsiz - 1]);
usr.sbin/radiusd/radiusd_eap2mschap.c
672
eap.chap.eap.code = EAP_CODE_REQUEST;
usr.sbin/radiusd/radiusd_eap2mschap.c
673
eap.chap.eap.id = ++req->eap_id;
usr.sbin/radiusd/radiusd_eap2mschap.c
674
eap.chap.eap.length = htons(eapsiz);
usr.sbin/radiusd/radiusd_eap2mschap.c
675
eap.chap.eap_type = EAP_TYPE_MSCHAPV2;
usr.sbin/radiusd/radiusd_eap2mschap.c
676
eap.chap.chap.id = resp[0];
usr.sbin/radiusd/radiusd_eap2mschap.c
677
eap.chap.chap.length = htons(
usr.sbin/radiusd/radiusd_eap2mschap.c
678
offsetof(struct chap, value[respsiz - 1]));
usr.sbin/radiusd/radiusd_eap2mschap.c
679
memcpy(eap.chap.chap.value, resp + 1, respsiz - 1);
usr.sbin/radiusd/radiusd_eap2mschap.c
681
eap.chap.chap.code = CHAP_SUCCESS;
usr.sbin/radiusd/radiusd_eap2mschap.c
683
eap.chap.chap.code = CHAP_FAILURE;