| /freebsd-12.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-12.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-12.1/contrib/wpa/wpa_supplicant/ |
| H A D | dpp_supplicant.c | 71 if (auth && auth->response_pending && in wpas_dpp_qr_code() 96 if (!auth || !auth->resp_msg) in wpas_dpp_auth_resp_retry_timeout() 103 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in wpas_dpp_auth_resp_retry_timeout() 118 if (!auth || !auth->resp_msg) in wpas_dpp_auth_resp_retry() 257 if (!auth || !auth->waiting_auth_resp) in wpas_dpp_reply_wait_timeout() 359 if (auth->freq_idx >= auth->num_freq) { in wpas_dpp_auth_init_next() 397 freq = auth->freq[auth->freq_idx++]; in wpas_dpp_auth_init_next() 1019 if (!auth || !auth->auth_success) { in wpas_dpp_gas_resp_cb() 1262 if (!auth || !auth->waiting_conf_result) in wpas_dpp_config_result_wait_timeout() 1881 if (!auth || !auth->auth_success || in wpas_dpp_gas_req_handler() [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() 897 os_memcpy(auth->peer, data->auth.peer, ETH_ALEN); in wpa_priv_send_auth() 898 os_memcpy(auth->bssid, data->auth.bssid, ETH_ALEN); in wpa_priv_send_auth() 899 auth->auth_type = data->auth.auth_type; in wpa_priv_send_auth() 900 auth->auth_transaction = data->auth.auth_transaction; in wpa_priv_send_auth() 901 auth->status_code = data->auth.status_code; in wpa_priv_send_auth() 903 os_memcpy(pos, data->auth.ies, data->auth.ies_len); in wpa_priv_send_auth() [all …]
|
| H A D | ibss_rsn.c | 42 wpa_auth_sta_deinit(peer->auth); in ibss_rsn_free() 358 if (peer->auth && cb(peer->auth, cb_ctx)) in auth_for_each_sta() 456 if (peer->auth == NULL) { in ibss_rsn_auth_init() 473 if (wpa_auth_sm_event(peer->auth, WPA_ASSOC)) in ibss_rsn_auth_init() 485 struct ieee80211_mgmt auth; in ibss_rsn_send_auth() local 486 const size_t auth_length = IEEE80211_HDRLEN + sizeof(auth.u.auth); in ibss_rsn_send_auth() 492 os_memset(&auth, 0, sizeof(auth)); in ibss_rsn_send_auth() 496 os_memcpy(auth.da, da, ETH_ALEN); in ibss_rsn_send_auth() 500 auth.u.auth.auth_alg = host_to_le16(WLAN_AUTH_OPEN); in ibss_rsn_send_auth() 501 auth.u.auth.auth_transaction = host_to_le16(seq); in ibss_rsn_send_auth() [all …]
|
| /freebsd-12.1/contrib/wpa/src/ap/ |
| H A D | dpp_hostapd.c | 47 if (auth && auth->response_pending && in hostapd_dpp_qr_code() 53 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_qr_code() 71 if (!auth || !auth->resp_msg) in hostapd_dpp_auth_resp_retry_timeout() 78 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_auth_resp_retry_timeout() 91 if (!auth || !auth->resp_msg) in hostapd_dpp_auth_resp_retry() 217 if (!auth || !auth->waiting_auth_resp) in hostapd_dpp_reply_wait_timeout() 323 if (auth->freq_idx >= auth->num_freq) { in hostapd_dpp_auth_init_next() 362 freq = auth->freq[auth->freq_idx++]; in hostapd_dpp_auth_init_next() 690 if (!auth || !auth->auth_success) { in hostapd_dpp_gas_resp_cb() 1435 if (!auth || !auth->auth_success || in hostapd_dpp_gas_req_handler() [all …]
|
| /freebsd-12.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-12.1/contrib/wpa/src/common/ |
| H A D | dpp.c | 2304 auth->Mx, auth->secret_len); in dpp_auth_init() 2307 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_init() 2892 auth->Nx, auth->secret_len); in dpp_auth_build_resp_ok() 2895 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_build_resp_ok() 2905 if (dpp_derive_ke(auth, auth->ke, auth->curve->hash_len) < 0) in dpp_auth_build_resp_ok() 3190 auth->Mx, auth->secret_len); in dpp_auth_req_rx() 3193 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_req_rx() 3799 auth->Nx, auth->secret_len); in dpp_auth_resp_rx() 3802 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_resp_rx() 3902 if (dpp_derive_ke(auth, auth->ke, auth->curve->hash_len) < 0) in dpp_auth_resp_rx() [all …]
|
| /freebsd-12.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-12.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-12.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-12.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-12.1/sys/dev/drm/ |
| H A D | drm_auth.c | 143 struct drm_auth *auth = data; in drm_getmagic() local 147 auth->magic = file_priv->magic; in drm_getmagic() 153 auth->magic = old+1; in drm_getmagic() 157 } while (drm_find_file(dev, auth->magic)); in drm_getmagic() 158 file_priv->magic = auth->magic; in drm_getmagic() 159 drm_add_magic(dev, file_priv, auth->magic); in drm_getmagic() 163 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic() 174 struct drm_auth *auth = data; in drm_authmagic() local 177 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic() 180 priv = drm_find_file(dev, auth->magic); in drm_authmagic() [all …]
|
| /freebsd-12.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-12.1/release/picobsd/mfs_tree/etc/ |
| H A D | login.conf | 10 auth-defaults:\ 11 :auth=passwd: 13 auth-root-defaults:\ 14 :auth-login=passwd:\ 15 :auth-rlogin=passwd:\ 17 auth-ftp-defaults:\ 18 :auth=passwd: 37 :tc=auth-defaults: 95 :tc=auth-root-defaults:\
|
| /freebsd-12.1/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 md5crypt.c \
|
| /freebsd-12.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
|
| /freebsd-12.1/usr.sbin/ctld/ |
| H A D | ctld.c | 143 struct auth *auth; in auth_new() local 145 auth = calloc(1, sizeof(*auth)); in auth_new() 154 auth_delete(struct auth *auth) in auth_delete() argument 168 const struct auth *auth; in auth_find() local 179 auth_check_secret_length(struct auth *auth) in auth_check_secret_length() argument 215 auth->a_user, auth->a_auth_group->ag_name); in auth_check_secret_length() 243 struct auth *auth; in auth_new_chap() local 271 struct auth *auth; in auth_new_chap_mutual() local 511 struct auth *auth, *auth_tmp; in auth_group_delete() local 1658 struct auth *auth; [all …]
|
| /freebsd-12.1/contrib/blacklist/diff/ |
| H A D | ssh.diff | 52 COPTS.auth-options.c= -Wno-pointer-sign 61 Index: dist/auth.c 65 diff -u -u -r1.10 auth.c 67 +++ dist/auth.c 22 Jan 2015 21:39:22 -0000 179 Index: auth-pam.c 183 diff -u -u -r1.7 auth-pam.c 185 +++ auth-pam.c 23 Jan 2016 00:01:16 -0000 202 Index: auth.c 206 diff -u -u -r1.15 auth.c 207 --- auth.c 21 Aug 2015 08:20:59 -0000 1.15 [all …]
|