/freebsd/usr.sbin/ppp/ |
H A D | pap.c | 83 pap_Req(struct authinfo *authp) in pap_Req() argument 85 struct bundle *bundle = authp->physical->dl->bundle; in pap_Req() 99 lh.id = authp->id; in pap_Req() 109 link_PushPacket(&authp->physical->link, bp, bundle, in pap_Req() 110 LINK_QUEUES(&authp->physical->link) - 1, PROTO_PAP); in pap_Req() 114 SendPapCode(struct authinfo *authp, int code, const char *message) in SendPapCode() argument 122 lh.id = authp->id; in SendPapCode() 138 link_PushPacket(&authp->physical->link, bp, authp->physical->dl->bundle, in SendPapCode() 139 LINK_QUEUES(&authp->physical->link) - 1, PROTO_PAP); in SendPapCode() 143 pap_Success(struct authinfo *authp) in pap_Success() argument [all …]
|
H A D | auth.c | 396 struct authinfo *authp = (struct authinfo *)vauthp; in AuthTimeout() local 398 timer_Stop(&authp->authtimer); in AuthTimeout() 399 if (--authp->retry > 0) { in AuthTimeout() 400 authp->id++; in AuthTimeout() 401 (*authp->fn.req)(authp); in AuthTimeout() 402 timer_Start(&authp->authtimer); in AuthTimeout() 405 datalink_AuthNotOk(authp->physical->dl); in AuthTimeout() 410 auth_Init(struct authinfo *authp, struct physical *p, auth_func req, in auth_Init() argument 413 memset(authp, '\0', sizeof(struct authinfo)); in auth_Init() 414 authp->cfg.fsm.timeout = DEF_FSMRETRY; in auth_Init() [all …]
|
H A D | chap.c | 487 chap_ChallengeInit(struct authinfo *authp) in chap_ChallengeInit() argument 489 struct chap *chap = auth2chap(authp); in chap_ChallengeInit() 493 len = strlen(authp->physical->dl->bundle->cfg.auth.name); in chap_ChallengeInit() 500 if (*authp->physical->dl->bundle->radius.cfg.file) { in chap_ChallengeInit() 509 if (authp->physical->link.lcp.want_authtype == 0x80) in chap_ChallengeInit() 511 else if (authp->physical->link.lcp.want_authtype == 0x81) in chap_ChallengeInit() 519 memcpy(cp, authp->physical->dl->bundle->cfg.auth.name, len); in chap_ChallengeInit() 524 chap_Challenge(struct authinfo *authp) in chap_Challenge() argument 526 struct chap *chap = auth2chap(authp); in chap_Challenge() 530 authp->physical->link.lcp.want_authtype); in chap_Challenge() [all …]
|
H A D | radius.c | 893 radius_Authenticate(struct radius *r, struct authinfo *authp, const char *name, in radius_Authenticate() argument 947 switch (authp->physical->link.lcp.want_auth) { in radius_Authenticate() 960 switch (authp->physical->link.lcp.want_authtype) { in radius_Authenticate() 1016 authp->physical->link.lcp.want_authtype); in radius_Authenticate() 1025 if (Enabled(authp->physical->dl->bundle, OPT_NAS_IP_ADDRESS) && in radius_Authenticate() 1035 if (Enabled(authp->physical->dl->bundle, OPT_NAS_IDENTIFIER) && in radius_Authenticate() 1051 radius_put_physical_details(r, authp->physical); in radius_Authenticate() 1055 r->cx.auth = authp; in radius_Authenticate()
|
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | ccm.c | 763 uint8_t *mac_buf, *datap, *ivp, *authp; in ccm_init() local 799 authp = (uint8_t *)ctx->ccm_tmp; in ccm_init() 800 memset(authp, 0, block_size); in ccm_init() 801 memcpy(authp, encoded_a, encoded_a_len); in ccm_init() 807 memcpy(authp+encoded_a_len, auth_data, processed); in ccm_init() 809 xor_block(authp, mac_buf); in ccm_init() 823 memset(authp, 0, block_size); in ccm_init() 824 memcpy(authp, &(auth_data[processed]), remainder); in ccm_init() 825 datap = (uint8_t *)authp; in ccm_init()
|
H A D | gcm.c | 538 uint8_t *ghash, *datap, *authp; in gcm_init() local 550 authp = (uint8_t *)ctx->gcm_tmp; in gcm_init() 552 memset(authp, 0, block_size); in gcm_init() 565 memset(authp, 0, block_size); in gcm_init() 566 memcpy(authp, &(auth_data[processed]), in gcm_init() 572 datap = (uint8_t *)authp; in gcm_init() 1481 uint8_t *authp = (uint8_t *)ctx->gcm_tmp; in gcm_init_avx() local 1483 memset(authp, 0, block_size); in gcm_init_avx() 1484 memcpy(authp, datap, incomp); in gcm_init_avx() 1485 GHASH_AVX(ctx, authp, block_size); in gcm_init_avx()
|
/freebsd/contrib/tnftp/src/ |
H A D | fetch.c | 1047 char **authp; in fetch_url() local 1051 authp = &wwwauth; in fetch_url() 1055 authp = &proxyauth; in fetch_url() 1059 if (verbose || *authp == NULL || in fetch_url() 1067 if (*authp != NULL) { in fetch_url() 1081 if (auth_url(auth, authp, auser, apass) == 0) { in fetch_url() 1084 memset(*authp, 0, strlen(*authp)); in fetch_url() 1085 FREEPTR(*authp); in fetch_url()
|
/freebsd/usr.sbin/ctld/ |
H A D | login.c | 339 struct chap *chap, const struct auth **authp) in login_receive_chap_r() argument 391 *authp = auth; in login_receive_chap_r()
|