| /freebsd-14.2/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 | 293 if (!auth) in dpp_reconfig_init() 315 auth->reconfig_req_msg = dpp_reconfig_build_req(auth); in dpp_reconfig_init() 320 return auth; in dpp_reconfig_init() 323 auth = NULL; in dpp_reconfig_init() 414 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_build_resp() 521 if (!auth) in dpp_reconfig_auth_req_rx() 644 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_build_conf() 683 if (!auth->reconfig || !auth->configurator) in dpp_reconfig_auth_resp_rx() 791 if (aes_siv_decrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_auth_resp_rx() 863 if (!auth->reconfig || auth->configurator) in dpp_reconfig_auth_conf_rx() [all …]
|
| H A D | dpp.c | 592 auth->freq[auth->num_freq++] = freq; in dpp_channel_intersect() 599 auth->curr_freq = auth->freq[0]; in dpp_channel_intersect() 632 auth->freq[auth->num_freq++] = freq; in dpp_channel_local_list() 670 freq_to_start(auth->freq, auth->num_freq, 2462); in dpp_prepare_channel_list() 671 freq_to_start(auth->freq, auth->num_freq, 2412); in dpp_prepare_channel_list() 672 freq_to_start(auth->freq, auth->num_freq, 2437); in dpp_prepare_channel_list() 675 auth->curr_freq = auth->freq[0]; in dpp_prepare_channel_list() 773 auth = os_zalloc(sizeof(*auth)); in dpp_alloc_auth() 1504 bin_clear_free(auth, sizeof(*auth)); in dpp_auth_deinit() 1678 if (auth->new_curve && auth->new_key_received) in dpp_build_conf_obj_dpp() [all …]
|
| H A D | dpp_tcp.c | 228 struct dpp_authentication *auth = conn->auth; in dpp_controller_gas_done() local 345 struct dpp_authentication *auth = conn->auth; in dpp_controller_start_gas_client() local 368 struct dpp_authentication *auth = conn->auth; in dpp_controller_auth_success() local 886 if (!auth || !auth->waiting_conf_result) { in dpp_controller_rx_conf_result() 991 conn->auth = auth; in dpp_controller_rx_presence_announcement() 1053 conn->auth = auth; in dpp_controller_rx_reconfig_announcement() 1068 if (!auth || !auth->reconfig || !auth->configurator) { in dpp_controller_rx_reconfig_auth_resp() 1538 if (!auth || !auth->csrattrs) in dpp_tcp_build_csr() 1560 if (!auth || !auth->waiting_new_key) in dpp_tcp_build_new_key() 2052 conn->auth = auth; in dpp_tcp_init() [all …]
|
| H A D | dpp_crypto.c | 455 if (!auth->Mx_len || !auth->Nx_len) { in dpp_derive_bk_ke() 470 if (auth->peer_bi && auth->own_bi) { in dpp_derive_bk_ke() 903 if (auth->own_bi) in dpp_gen_r_auth() 986 if (auth->own_bi) in dpp_gen_i_auth() 1081 crypto_bignum_to_bin(lx, auth->Lx, sizeof(auth->Lx), in dpp_auth_derive_l_responder() 1086 auth->Lx_len = auth->secret_len; in dpp_auth_derive_l_responder() 1123 crypto_bignum_to_bin(lx, auth->Lx, sizeof(auth->Lx), in dpp_auth_derive_l_initiator() 1128 auth->Lx_len = auth->secret_len; in dpp_auth_derive_l_initiator() 1721 if (random_get_bytes(auth->e_nonce, auth->curve->nonce_len)) { in dpp_reconfig_derive_ke_responder() 1726 auth->e_nonce, auth->curve->nonce_len); in dpp_reconfig_derive_ke_responder() [all …]
|
| H A D | dpp_i.h | 33 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth); 34 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth); 55 int dpp_prepare_channel_list(struct dpp_authentication *auth, 58 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt); 67 int dpp_conf_resp_env_data(struct dpp_authentication *auth, 111 int dpp_derive_bk_ke(struct dpp_authentication *auth); 112 int dpp_gen_r_auth(struct dpp_authentication *auth, u8 *r_auth); 113 int dpp_gen_i_auth(struct dpp_authentication *auth, u8 *i_auth); 114 int dpp_auth_derive_l_responder(struct dpp_authentication *auth); 115 int dpp_auth_derive_l_initiator(struct dpp_authentication *auth); [all …]
|
| /freebsd-14.2/crypto/openssl/test/ssl-tests/ |
| H A D | 04-client_auth.cnf | 5 test-0 = 0-server-auth-flex 6 test-1 = 1-client-auth-flex-request 11 test-6 = 6-server-auth-TLSv1 43 [0-server-auth-flex] 46 [0-server-auth-flex-ssl] 50 [0-server-auth-flex-server] 55 [0-server-auth-flex-client] 202 [6-server-auth-TLSv1] 205 [6-server-auth-TLSv1-ssl] 385 [12-server-auth-TLSv1.1] [all …]
|
| H A D | 26-tls13_client_auth.cnf | 5 test-0 = 0-server-auth-TLSv1.3 6 test-1 = 1-client-auth-TLSv1.3-request 8 test-3 = 3-client-auth-TLSv1.3-require 10 test-5 = 5-client-auth-TLSv1.3-noroot 21 [0-server-auth-TLSv1.3] 24 [0-server-auth-TLSv1.3-ssl] 28 [0-server-auth-TLSv1.3-server] 35 [0-server-auth-TLSv1.3-client] 48 [1-client-auth-TLSv1.3-request] 106 [3-client-auth-TLSv1.3-require] [all …]
|
| H A D | 23-srp.cnf | 7 test-2 = 2-srp-auth 8 test-3 = 3-srp-auth-bad-password 81 [2-srp-auth] 82 ssl_conf = 2-srp-auth-ssl 84 [2-srp-auth-ssl] 85 server = 2-srp-auth-server 88 [2-srp-auth-server] 94 [2-srp-auth-client] 105 [2-srp-auth-server-extra] 109 [2-srp-auth-client-extra] [all …]
|
| H A D | 26-tls13_client_auth.cnf.in | 22 name => "server-auth-TLSv1.3", 36 name => "client-auth-TLSv1.3-request", 51 name => "client-auth-TLSv1.3-require-fail", 68 name => "client-auth-TLSv1.3-require", 91 name => "client-auth-TLSv1.3-require-non-empty-names", 115 name => "client-auth-TLSv1.3-noroot", 133 name => "client-auth-TLSv1.3-request-post-handshake", 149 name => "client-auth-TLSv1.3-require-fail-post-handshake", 166 name => "client-auth-TLSv1.3-require-post-handshake", 221 name => "client-auth-TLSv1.3-noroot-post-handshake", [all …]
|
| /freebsd-14.2/lib/libc/rpc/ |
| H A D | auth_unix.c | 86 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 99 AUTH *auth; in authunix_create() local 106 auth = mem_alloc(sizeof(*auth)); in authunix_create() 108 if (auth == NULL) { in authunix_create() 160 return (auth); in authunix_create() 163 if (auth) in authunix_create() 164 mem_free(auth, sizeof(*auth)); in authunix_create() 181 AUTH *auth; in authunix_create_default() local 206 return (auth); in authunix_create_default() 324 mem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length); in authunix_destroy() [all …]
|
| H A D | auth_des.c | 63 #define AUTH_PRIVATE(auth) (struct ad_private *) auth->ah_private argument 154 AUTH *auth; in authdes_pk_seccreate() local 161 auth = ALLOC(AUTH); in authdes_pk_seccreate() 162 if (auth == NULL) { in authdes_pk_seccreate() 214 auth->ah_key = *ckey; in authdes_pk_seccreate() 229 return (auth); in authdes_pk_seccreate() 232 if (auth) in authdes_pk_seccreate() 233 FREE(auth, sizeof (AUTH)); in authdes_pk_seccreate() 442 ad->ad_xkey = auth->ah_key; in authdes_refresh() 461 authdes_destroy(AUTH *auth) in authdes_destroy() argument [all …]
|
| /freebsd-14.2/include/rpc/ |
| H A D | auth.h | 209 ((*((auth)->ah_ops->ah_nextverf))(auth)) 211 ((*((auth)->ah_ops->ah_nextverf))(auth)) 214 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) 216 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs)) 219 ((*((auth)->ah_ops->ah_validate))((auth), verfp)) 221 ((*((auth)->ah_ops->ah_validate))((auth), verfp)) 224 ((*((auth)->ah_ops->ah_refresh))(auth, msg)) 226 ((*((auth)->ah_ops->ah_refresh))(auth, msg)) 228 #define AUTH_DESTROY(auth) \ argument 229 ((*((auth)->ah_ops->ah_destroy))(auth)) [all …]
|
| /freebsd-14.2/sys/rpc/ |
| H A D | auth_unix.c | 101 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 133 AUTH *auth; in authunix_create() local 184 auth = mem_alloc(sizeof(*auth)); in authunix_create() 193 au->au_auth = auth; in authunix_create() 214 marshal_new_auth(auth); in authunix_create() 224 AUTH_DESTROY(auth); in authunix_create() 235 return (auth); in authunix_create() 254 au = AUTH_PRIVATE(auth); in authunix_marshal() 330 marshal_new_auth(auth); in authunix_refresh() 354 mem_free(auth->ah_verf.oa_base, auth->ah_verf.oa_length); in authunix_destroy() [all …]
|
| H A D | auth.h | 210 #define AUTH_NEXTVERF(auth) \ argument 211 ((*((auth)->ah_ops->ah_nextverf))(auth)) 213 #define AUTH_MARSHALL(auth, xid, xdrs, args) \ argument 214 ((*((auth)->ah_ops->ah_marshal))(auth, xid, xdrs, args)) 216 #define AUTH_VALIDATE(auth, xid, verfp, resultsp) \ argument 217 ((*((auth)->ah_ops->ah_validate))((auth), xid, verfp, resultsp)) 219 #define AUTH_REFRESH(auth, msg) \ argument 220 ((*((auth)->ah_ops->ah_refresh))(auth, msg)) 222 #define AUTH_DESTROY(auth) \ argument 223 ((*((auth)->ah_ops->ah_destroy))(auth))
|
| /freebsd-14.2/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-14.2/contrib/wpa/wpa_supplicant/ |
| H A D | dpp_supplicant.c | 84 if (auth && auth->response_pending && in wpas_dpp_qr_code() 198 if (!auth || !auth->resp_msg) in wpas_dpp_auth_resp_retry_timeout() 220 if (!auth || !auth->resp_msg) in wpas_dpp_auth_resp_retry() 1358 freq = auth->neg_freq > 0 ? auth->neg_freq : auth->curr_freq; in wpas_dpp_tx_wait_expire() 1816 if (!auth || !auth->csrattrs) in wpas_dpp_build_csr() 1865 if (!auth || (!auth->auth_success && !auth->reconfig_success) || in wpas_dpp_gas_resp_cb() 2279 freq = auth->neg_freq ? auth->neg_freq : auth->curr_freq; in wpas_dpp_rx_conf_result() 2658 if (!auth || !auth->reconfig || !auth->configurator) { in wpas_dpp_rx_reconfig_auth_resp() 2702 if (!auth || !auth->reconfig || auth->configurator) { in wpas_dpp_rx_reconfig_auth_conf() 4180 if (!auth || !auth->waiting_config || !auth->config_resp_ctx) in wpas_dpp_gas_initial_resp_timeout() [all …]
|
| H A D | wpa_priv.c | 259 auth = buf; in wpa_priv_cmd_authenticate() 260 if (sizeof(*auth) + auth->ie_len + auth->auth_data_len > len) { in wpa_priv_cmd_authenticate() 282 if (auth->ie_len) { in wpa_priv_cmd_authenticate() 287 params.auth_data = ((u8 *) (auth + 1)) + auth->ie_len; in wpa_priv_cmd_authenticate() 908 os_memcpy(auth->peer, data->auth.peer, ETH_ALEN); in wpa_priv_send_auth() 909 os_memcpy(auth->bssid, data->auth.bssid, ETH_ALEN); in wpa_priv_send_auth() 910 auth->auth_type = data->auth.auth_type; in wpa_priv_send_auth() 911 auth->auth_transaction = data->auth.auth_transaction; in wpa_priv_send_auth() 912 auth->status_code = data->auth.status_code; in wpa_priv_send_auth() 914 os_memcpy(pos, data->auth.ies, data->auth.ies_len); in wpa_priv_send_auth() [all …]
|
| /freebsd-14.2/lib/librpcsec_gss/ |
| H A D | rpcsec_gss.c | 115 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument 124 AUTH *auth, *save_auth; in rpc_gss_seccreate() local 164 auth = mem_alloc(sizeof(*auth)); in rpc_gss_seccreate() 165 if (auth == NULL) { in rpc_gss_seccreate() 174 free(auth); in rpc_gss_seccreate() 212 clnt->cl_auth = auth; in rpc_gss_seccreate() 220 return (auth); in rpc_gss_seccreate() 223 AUTH_DESTROY(auth); in rpc_gss_seccreate() 234 gd = AUTH_PRIVATE(auth); in rpc_gss_set_defaults() 278 gd = AUTH_PRIVATE(auth); in rpc_gss_validate() [all …]
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | chap.c | 330 write(in[1], chap->auth.in.name, strlen(chap->auth.in.name)); in chap_StartChild() 383 ChapOutput(chap->auth.physical, CHAP_RESPONSE, chap->auth.id, in chap_Respond() 391 ChapOutput(chap->auth.physical, CHAP_FAILURE, chap->auth.id, in chap_Respond() 660 chap_Challenge(&chap->auth); in chap_HaveAnotherGo() 722 else if (chap->auth.in.hdr.code == 0 || chap->auth.in.hdr.code > MAXCHAPCODE) in chap_Input() 730 chap->auth.id != chap->auth.in.hdr.id && in chap_Input() 734 chapcodes[chap->auth.in.hdr.code], chap->auth.in.hdr.id, in chap_Input() 739 chap->auth.id = chap->auth.in.hdr.id; /* We respond with this id */ in chap_Input() 780 *ans = chap->auth.id; in chap_Input() 837 if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!') in chap_Input() [all …]
|
| /freebsd-14.2/contrib/wpa/src/ap/ |
| H A D | dpp_hostapd.c | 65 if (auth && auth->response_pending && in hostapd_dpp_qr_code() 176 if (!auth || !auth->resp_msg) in hostapd_dpp_auth_resp_retry_timeout() 196 if (!auth || !auth->resp_msg) in hostapd_dpp_auth_resp_retry() 615 if (!auth || !auth->waiting_auth_resp) in hostapd_dpp_reply_wait_timeout() 685 if (!auth || !auth->waiting_auth_conf) in hostapd_dpp_auth_conf_wait_timeout() 740 if (auth->freq_idx >= auth->num_freq) { in hostapd_dpp_auth_init_next() 779 freq = auth->freq[auth->freq_idx++]; in hostapd_dpp_auth_init_next() 1245 if (!auth || !auth->waiting_new_key) in hostapd_dpp_build_new_key() 1265 if (!auth || !auth->auth_success) { in hostapd_dpp_gas_resp_cb() 1862 if (!auth || !auth->reconfig || !auth->configurator) { in hostapd_dpp_rx_reconfig_auth_resp() [all …]
|
| /freebsd-14.2/sys/rpc/rpcsec_gss/ |
| H A D | rpcsec_gss.c | 147 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument 197 AUTH *auth; in rpc_gss_secfind() local 259 if (!auth) in rpc_gss_secfind() 287 return (auth); in rpc_gss_secfind() 360 AUTH *auth; in rpc_gss_seccreate_int() local 383 auth = mem_alloc(sizeof(*auth)); in rpc_gss_seccreate_int() 384 if (auth == NULL) { in rpc_gss_seccreate_int() 393 mem_free(auth, sizeof(*auth)); in rpc_gss_seccreate_int() 403 gd->gd_auth = auth; in rpc_gss_seccreate_int() 436 return (auth); in rpc_gss_seccreate_int() [all …]
|
| /freebsd-14.2/sys/dev/drm2/ |
| H A D | drm_auth.c | 148 struct drm_auth *auth = data; in drm_getmagic() local 152 auth->magic = file_priv->magic; in drm_getmagic() 158 auth->magic = sequence++; in drm_getmagic() 160 } while (drm_find_file(file_priv->master, auth->magic)); in drm_getmagic() 161 file_priv->magic = auth->magic; in drm_getmagic() 162 drm_add_magic(file_priv->master, file_priv, auth->magic); in drm_getmagic() 165 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic() 186 struct drm_auth *auth = data; in drm_authmagic() local 189 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic() 190 if ((file = drm_find_file(file_priv->master, auth->magic))) { in drm_authmagic() [all …]
|
| /freebsd-14.2/secure/usr.sbin/sshd/ |
| H A D | Makefile | 8 SRCS= sshd.c auth-rhosts.c auth-passwd.c \ 11 auth.c auth2.c auth-options.c session.c \ 13 auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \ 15 monitor.c monitor_wrap.c auth-krb5.c \ 17 loginrec.c auth-pam.c auth-shadow.c auth-sia.c \
|
| /freebsd-14.2/crypto/openssh/contrib/redhat/ |
| H A D | sshd.pam | 2 auth required pam_stack.so service=system-auth 4 account required pam_stack.so service=system-auth 5 password required pam_stack.so service=system-auth 6 session required pam_stack.so service=system-auth
|