| /freebsd-13.1/contrib/wpa/src/common/ |
| H A D | dpp_auth.c | 46 os_memset(auth->Mx, 0, sizeof(auth->Mx)); in dpp_auth_success() 488 auth->Nx, auth->secret_len); in dpp_auth_build_resp_ok() 489 auth->Nx_len = auth->secret_len; in dpp_auth_build_resp_ok() 491 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_build_resp_ok() 787 auth->Mx, auth->secret_len); in dpp_auth_req_rx() 790 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_req_rx() 1247 auth->Mx, auth->secret_len); in dpp_auth_init() 1250 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_init() 1432 if (!auth->initiator || !auth->peer_bi || auth->reconfig) { in dpp_auth_resp_rx() 1573 auth->Nx, auth->secret_len); in dpp_auth_resp_rx() [all …]
|
| H A D | dpp_reconfig.c | 277 if (!auth) in dpp_reconfig_init() 299 auth->reconfig_req_msg = dpp_reconfig_build_req(auth); in dpp_reconfig_init() 304 return auth; in dpp_reconfig_init() 307 auth = NULL; in dpp_reconfig_init() 398 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_build_resp() 505 if (!auth) in dpp_reconfig_auth_req_rx() 628 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_build_conf() 667 if (!auth->reconfig || !auth->configurator) in dpp_reconfig_auth_resp_rx() 775 if (aes_siv_decrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_auth_resp_rx() 847 if (!auth->reconfig || auth->configurator) in dpp_reconfig_auth_conf_rx() [all …]
|
| H A D | dpp.c | 503 auth->freq[auth->num_freq++] = freq; in dpp_channel_intersect() 510 auth->curr_freq = auth->freq[0]; in dpp_channel_intersect() 543 auth->freq[auth->num_freq++] = freq; in dpp_channel_local_list() 581 freq_to_start(auth->freq, auth->num_freq, 2462); in dpp_prepare_channel_list() 582 freq_to_start(auth->freq, auth->num_freq, 2412); in dpp_prepare_channel_list() 583 freq_to_start(auth->freq, auth->num_freq, 2437); in dpp_prepare_channel_list() 586 auth->curr_freq = auth->freq[0]; in dpp_prepare_channel_list() 647 auth = os_zalloc(sizeof(*auth)); in dpp_alloc_auth() 648 if (!auth) in dpp_alloc_auth() 1298 bin_clear_free(auth, sizeof(*auth)); in dpp_auth_deinit() [all …]
|
| H A D | dpp_tcp.c | 179 struct dpp_authentication *auth = conn->auth; in dpp_controller_gas_done() local 283 struct dpp_authentication *auth = conn->auth; in dpp_controller_start_gas_client() local 304 struct dpp_authentication *auth = conn->auth; in dpp_controller_auth_success() local 684 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_auth_resp() local 714 struct dpp_authentication *auth = conn->auth; in dpp_controller_rx_auth_conf() local 763 if (!auth || !auth->waiting_conf_result) { in dpp_controller_rx_conf_result() 865 conn->auth = auth; in dpp_controller_rx_presence_announcement() 927 conn->auth = auth; in dpp_controller_rx_reconfig_announcement() 942 if (!auth || !auth->reconfig || !auth->configurator) { in dpp_controller_rx_reconfig_auth_resp() 1210 if (!auth || !auth->csrattrs) in dpp_tcp_build_csr() [all …]
|
| H A D | dpp_crypto.c | 434 if (!auth->Mx_len || !auth->Nx_len) { in dpp_derive_bk_ke() 449 if (auth->peer_bi && auth->own_bi) { in dpp_derive_bk_ke() 882 if (auth->own_bi) in dpp_gen_r_auth() 965 if (auth->own_bi) in dpp_gen_i_auth() 1061 crypto_bignum_to_bin(lx, auth->Lx, sizeof(auth->Lx), in dpp_auth_derive_l_responder() 1065 wpa_hexdump_key(MSG_DEBUG, "DPP: L.x", auth->Lx, auth->secret_len); in dpp_auth_derive_l_responder() 1066 auth->Lx_len = auth->secret_len; in dpp_auth_derive_l_responder() 1102 crypto_bignum_to_bin(lx, auth->Lx, sizeof(auth->Lx), in dpp_auth_derive_l_initiator() 1107 auth->Lx_len = auth->secret_len; in dpp_auth_derive_l_initiator() 1698 if (random_get_bytes(auth->e_nonce, auth->curve->nonce_len)) { in dpp_reconfig_derive_ke_responder() [all …]
|
| H A D | dpp_i.h | 24 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 45 int dpp_prepare_channel_list(struct dpp_authentication *auth, 48 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt); 57 int dpp_conf_resp_env_data(struct dpp_authentication *auth, 103 int dpp_derive_bk_ke(struct dpp_authentication *auth); 104 int dpp_gen_r_auth(struct dpp_authentication *auth, u8 *r_auth); 105 int dpp_gen_i_auth(struct dpp_authentication *auth, u8 *i_auth); 106 int dpp_auth_derive_l_responder(struct dpp_authentication *auth); 107 int dpp_auth_derive_l_initiator(struct dpp_authentication *auth); 127 int dpp_reconfig_derive_ke_responder(struct dpp_authentication *auth, [all …]
|
| /freebsd-13.1/lib/libc/rpc/ |
| H A D | auth_unix.c | 89 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 102 AUTH *auth; in authunix_create() local 109 auth = mem_alloc(sizeof(*auth)); in authunix_create() 111 if (auth == NULL) { in authunix_create() 163 return (auth); in authunix_create() 166 if (auth) in authunix_create() 167 mem_free(auth, sizeof(*auth)); in authunix_create() 184 AUTH *auth; in authunix_create_default() local 209 return (auth); in authunix_create_default() 327 mem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length); in authunix_destroy() [all …]
|
| H A D | auth_des.c | 67 #define AUTH_PRIVATE(auth) (struct ad_private *) auth->ah_private argument 158 AUTH *auth; in authdes_pk_seccreate() local 165 auth = ALLOC(AUTH); in authdes_pk_seccreate() 166 if (auth == NULL) { in authdes_pk_seccreate() 218 auth->ah_key = *ckey; in authdes_pk_seccreate() 233 return (auth); in authdes_pk_seccreate() 236 if (auth) in authdes_pk_seccreate() 237 FREE(auth, sizeof (AUTH)); in authdes_pk_seccreate() 446 ad->ad_xkey = auth->ah_key; in authdes_refresh() 465 authdes_destroy(AUTH *auth) in authdes_destroy() argument [all …]
|
| /freebsd-13.1/include/rpc/ |
| H A D | auth.h | 210 ((*((auth)->ah_ops->ah_nextverf))(auth)) 212 ((*((auth)->ah_ops->ah_nextverf))(auth)) 215 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) 217 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) 220 ((*((auth)->ah_ops->ah_validate))((auth), verfp)) 222 ((*((auth)->ah_ops->ah_validate))((auth), verfp)) 225 ((*((auth)->ah_ops->ah_refresh))(auth, msg)) 227 ((*((auth)->ah_ops->ah_refresh))(auth, msg)) 229 #define AUTH_DESTROY(auth) \ argument 230 ((*((auth)->ah_ops->ah_destroy))(auth)) [all …]
|
| /freebsd-13.1/sys/rpc/ |
| H A D | auth_unix.c | 103 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 135 AUTH *auth; in authunix_create() local 186 auth = mem_alloc(sizeof(*auth)); in authunix_create() 195 au->au_auth = auth; in authunix_create() 216 marshal_new_auth(auth); in authunix_create() 226 AUTH_DESTROY(auth); in authunix_create() 237 return (auth); in authunix_create() 256 au = AUTH_PRIVATE(auth); in authunix_marshal() 332 marshal_new_auth(auth); in authunix_refresh() 356 mem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length); in authunix_destroy() [all …]
|
| H A D | auth.h | 211 #define AUTH_NEXTVERF(auth) \ argument 212 ((*((auth)->ah_ops->ah_nextverf))(auth)) 214 #define AUTH_MARSHALL(auth, xid, xdrs, args) \ argument 215 ((*((auth)->ah_ops->ah_marshal))(auth, xid, xdrs, args)) 217 #define AUTH_VALIDATE(auth, xid, verfp, resultsp) \ argument 218 ((*((auth)->ah_ops->ah_validate))((auth), xid, verfp, resultsp)) 220 #define AUTH_REFRESH(auth, msg) \ argument 221 ((*((auth)->ah_ops->ah_refresh))(auth, msg)) 223 #define AUTH_DESTROY(auth) \ argument 224 ((*((auth)->ah_ops->ah_destroy))(auth))
|
| /freebsd-13.1/contrib/wpa/wpa_supplicant/ |
| H A D | dpp_supplicant.c | 80 if (auth && auth->response_pending && in wpas_dpp_qr_code() 194 if (!auth || !auth->resp_msg) in wpas_dpp_auth_resp_retry_timeout() 216 if (!auth || !auth->resp_msg) in wpas_dpp_auth_resp_retry() 552 if (!auth || !auth->waiting_auth_resp) in wpas_dpp_reply_wait_timeout() 615 if (!auth || !auth->waiting_auth_conf) in wpas_dpp_auth_conf_wait_timeout() 709 freq = auth->freq[auth->freq_idx++]; in wpas_dpp_auth_init_next() 1593 if (!auth || !auth->csrattrs) in wpas_dpp_build_csr() 1626 if (!auth || (!auth->auth_success && !auth->reconfig_success) || in wpas_dpp_gas_resp_cb() 2284 if (!auth || !auth->reconfig || !auth->configurator) { in wpas_dpp_rx_reconfig_auth_resp() 2328 if (!auth || !auth->reconfig || auth->configurator) { in wpas_dpp_rx_reconfig_auth_conf() [all …]
|
| H A D | wpa_priv.c | 256 auth = buf; in wpa_priv_cmd_authenticate() 257 if (sizeof(*auth) + auth->ie_len + auth->auth_data_len > len) { in wpa_priv_cmd_authenticate() 279 if (auth->ie_len) { in wpa_priv_cmd_authenticate() 284 params.auth_data = ((u8 *) (auth + 1)) + auth->ie_len; in wpa_priv_cmd_authenticate() 904 os_memcpy(auth->peer, data->auth.peer, ETH_ALEN); in wpa_priv_send_auth() 905 os_memcpy(auth->bssid, data->auth.bssid, ETH_ALEN); in wpa_priv_send_auth() 906 auth->auth_type = data->auth.auth_type; in wpa_priv_send_auth() 907 auth->auth_transaction = data->auth.auth_transaction; in wpa_priv_send_auth() 908 auth->status_code = data->auth.status_code; in wpa_priv_send_auth() 910 os_memcpy(pos, data->auth.ies, data->auth.ies_len); in wpa_priv_send_auth() [all …]
|
| /freebsd-13.1/contrib/wpa/src/ap/ |
| H A D | dpp_hostapd.c | 57 if (auth && auth->response_pending && in hostapd_dpp_qr_code() 63 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_qr_code() 168 if (!auth || !auth->resp_msg) in hostapd_dpp_auth_resp_retry_timeout() 188 if (!auth || !auth->resp_msg) in hostapd_dpp_auth_resp_retry() 331 if (!auth || !auth->waiting_auth_resp) in hostapd_dpp_reply_wait_timeout() 401 if (!auth || !auth->waiting_auth_conf) in hostapd_dpp_auth_conf_wait_timeout() 456 if (auth->freq_idx >= auth->num_freq) { in hostapd_dpp_auth_init_next() 495 freq = auth->freq[auth->freq_idx++]; in hostapd_dpp_auth_init_next() 914 if (!auth || !auth->auth_success) { in hostapd_dpp_gas_resp_cb() 1439 if (!auth || !auth->reconfig || !auth->configurator) { in hostapd_dpp_rx_reconfig_auth_resp() [all …]
|
| /freebsd-13.1/crypto/heimdal/lib/krb5/ |
| H A D | build_auth.c | 113 Authenticator auth; in _krb5_build_authenticator() local 120 memset(&auth, 0, sizeof(auth)); in _krb5_build_authenticator() 122 auth.authenticator_vno = 5; in _krb5_build_authenticator() 126 krb5_us_timeofday (context, &auth.ctime, &auth.cusec); in _krb5_build_authenticator() 137 ALLOC(auth.seq_number, 1); in _krb5_build_authenticator() 138 if(auth.seq_number == NULL) { in _krb5_build_authenticator() 144 auth.seq_number = NULL; in _krb5_build_authenticator() 145 auth.authorization_data = NULL; in _krb5_build_authenticator() 148 ALLOC(auth.cksum, 1); in _krb5_build_authenticator() 149 if (auth.cksum == NULL) { in _krb5_build_authenticator() [all …]
|
| /freebsd-13.1/lib/librpcsec_gss/ |
| H A D | rpcsec_gss.c | 117 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument 126 AUTH *auth, *save_auth; in rpc_gss_seccreate() local 166 auth = mem_alloc(sizeof(*auth)); in rpc_gss_seccreate() 167 if (auth == NULL) { in rpc_gss_seccreate() 176 free(auth); in rpc_gss_seccreate() 214 clnt->cl_auth = auth; in rpc_gss_seccreate() 222 return (auth); in rpc_gss_seccreate() 225 AUTH_DESTROY(auth); in rpc_gss_seccreate() 236 gd = AUTH_PRIVATE(auth); in rpc_gss_set_defaults() 280 gd = AUTH_PRIVATE(auth); in rpc_gss_validate() [all …]
|
| /freebsd-13.1/usr.sbin/ppp/ |
| H A D | chap.c | 332 write(in[1], chap->auth.in.name, strlen(chap->auth.in.name)); in chap_StartChild() 385 ChapOutput(chap->auth.physical, CHAP_RESPONSE, chap->auth.id, in chap_Respond() 393 ChapOutput(chap->auth.physical, CHAP_FAILURE, chap->auth.id, in chap_Respond() 662 chap_Challenge(&chap->auth); in chap_HaveAnotherGo() 724 else if (chap->auth.in.hdr.code == 0 || chap->auth.in.hdr.code > MAXCHAPCODE) in chap_Input() 732 chap->auth.id != chap->auth.in.hdr.id && in chap_Input() 736 chapcodes[chap->auth.in.hdr.code], chap->auth.in.hdr.id, in chap_Input() 741 chap->auth.id = chap->auth.in.hdr.id; /* We respond with this id */ in chap_Input() 782 *ans = chap->auth.id; in chap_Input() 839 if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!') in chap_Input() [all …]
|
| /freebsd-13.1/sys/rpc/rpcsec_gss/ |
| H A D | rpcsec_gss.c | 149 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument 199 AUTH *auth; in rpc_gss_secfind() local 261 if (!auth) in rpc_gss_secfind() 289 return (auth); in rpc_gss_secfind() 362 AUTH *auth; in rpc_gss_seccreate_int() local 385 auth = mem_alloc(sizeof(*auth)); in rpc_gss_seccreate_int() 386 if (auth == NULL) { in rpc_gss_seccreate_int() 395 mem_free(auth, sizeof(*auth)); in rpc_gss_seccreate_int() 405 gd->gd_auth = auth; in rpc_gss_seccreate_int() 438 return (auth); in rpc_gss_seccreate_int() [all …]
|
| /freebsd-13.1/sys/dev/drm2/ |
| H A D | drm_auth.c | 150 struct drm_auth *auth = data; in drm_getmagic() local 154 auth->magic = file_priv->magic; in drm_getmagic() 160 auth->magic = sequence++; in drm_getmagic() 162 } while (drm_find_file(file_priv->master, auth->magic)); in drm_getmagic() 163 file_priv->magic = auth->magic; in drm_getmagic() 164 drm_add_magic(file_priv->master, file_priv, auth->magic); in drm_getmagic() 167 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic() 188 struct drm_auth *auth = data; in drm_authmagic() local 191 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic() 192 if ((file = drm_find_file(file_priv->master, auth->magic))) { in drm_authmagic() [all …]
|
| /freebsd-13.1/secure/usr.sbin/sshd/ |
| H A D | Makefile | 9 SRCS= sshd.c auth-rhosts.c auth-passwd.c \ 12 auth.c auth2.c auth-options.c session.c \ 14 auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 16 monitor.c monitor_wrap.c auth-krb5.c \ 18 loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c \
|
| /freebsd-13.1/lib/libpam/pam.d/ |
| H A D | ftpd | 7 # auth 8 auth sufficient pam_opie.so no_warn no_fake_prompts 9 auth requisite pam_opieaccess.so no_warn allow_local 10 #auth sufficient pam_krb5.so no_warn 11 #auth sufficient pam_ssh.so no_warn try_first_pass 12 auth required pam_unix.so no_warn try_first_pass
|
| H A D | other | 7 # auth 8 auth sufficient pam_opie.so no_warn no_fake_prompts 9 auth requisite pam_opieaccess.so no_warn allow_local 10 #auth sufficient pam_krb5.so no_warn try_first_pass 11 #auth sufficient pam_ssh.so no_warn try_first_pass 12 auth required pam_unix.so no_warn try_first_pass
|
| H A D | system | 7 # auth 8 auth sufficient pam_opie.so no_warn no_fake_prompts 9 auth requisite pam_opieaccess.so no_warn allow_local 10 #auth sufficient pam_krb5.so no_warn try_first_pass 11 #auth sufficient pam_ssh.so no_warn try_first_pass 12 auth required pam_unix.so no_warn try_first_pass nullok
|
| H A D | sshd | 7 # auth 8 auth sufficient pam_opie.so no_warn no_fake_prompts 9 auth requisite pam_opieaccess.so no_warn allow_local 10 #auth sufficient pam_krb5.so no_warn try_first_pass 11 #auth sufficient pam_ssh.so no_warn try_first_pass 12 auth required pam_unix.so no_warn try_first_pass
|
| H A D | telnetd | 7 # auth 8 auth sufficient pam_opie.so no_warn no_fake_prompts 9 auth requisite pam_opieaccess.so no_warn allow_local 10 #auth sufficient pam_krb5.so no_warn try_first_pass 11 #auth sufficient pam_ssh.so no_warn try_first_pass 12 auth required pam_unix.so no_warn try_first_pass
|