Lines Matching refs:bundle
85 struct bundle *bundle = authp->physical->dl->bundle; in pap_Req() local
91 namelen = strlen(bundle->cfg.auth.name); in pap_Req()
92 keylen = strlen(bundle->cfg.auth.key); in pap_Req()
95 log_Printf(LogPHASE, "Pap Output: %s ********\n", bundle->cfg.auth.name); in pap_Req()
96 if (*bundle->cfg.auth.name == '\0') in pap_Req()
105 memcpy(cp, bundle->cfg.auth.name, namelen); in pap_Req()
108 memcpy(cp, bundle->cfg.auth.key, keylen); in pap_Req()
109 link_PushPacket(&authp->physical->link, bp, bundle, in pap_Req()
138 link_PushPacket(&authp->physical->link, bp, authp->physical->dl->bundle, in SendPapCode()
145 struct bundle *bundle = authp->physical->dl->bundle; in pap_Success() local
149 if (*bundle->radius.cfg.file && bundle->radius.repstr) in pap_Success()
150 SendPapCode(authp, PAP_ACK, bundle->radius.repstr); in pap_Success()
155 if (Enabled(bundle, OPT_UTMP)) in pap_Success()
180 pap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in pap_Input() argument
194 if (bundle_Phase(bundle) != PHASE_NETWORK && in pap_Input()
195 bundle_Phase(bundle) != PHASE_AUTHENTICATE) { in pap_Input()
214 Enabled(bundle, OPT_IDCHECK)) { in pap_Input()
267 if (*bundle->radius.cfg.file) { in pap_Input()
268 if (!radius_Authenticate(&bundle->radius, authp, authp->in.name, in pap_Input()
273 if (auth_Validate(bundle, authp->in.name, key)) in pap_Input()