Home
last modified time | relevance | path

Searched refs:auth (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/freebsd/contrib/wpa/src/common/
H A Ddpp_auth.c42 static void dpp_auth_success(struct dpp_authentication *auth) in dpp_auth_success() argument
46 os_memset(auth->Mx, 0, sizeof(auth->Mx)); in dpp_auth_success()
47 auth->Mx_len = 0; in dpp_auth_success()
48 os_memset(auth->Nx, 0, sizeof(auth->Nx)); in dpp_auth_success()
49 auth->Nx_len = 0; in dpp_auth_success()
50 os_memset(auth->Lx, 0, sizeof(auth->Lx)); in dpp_auth_success()
51 auth->Lx_len = 0; in dpp_auth_success()
52 os_memset(auth->k1, 0, sizeof(auth->k1)); in dpp_auth_success()
53 os_memset(auth->k2, 0, sizeof(auth->k2)); in dpp_auth_success()
55 auth->auth_success = 1; in dpp_auth_success()
[all …]
H A Ddpp_reconfig.c130 static struct wpabuf * dpp_reconfig_build_req(struct dpp_authentication *auth) in dpp_reconfig_build_req() argument
137 attr_len = 4 + 1 + 4 + 1 + 4 + os_strlen(auth->conf->connector) + in dpp_reconfig_build_req()
138 4 + auth->curve->nonce_len; in dpp_reconfig_build_req()
146 wpabuf_put_u8(msg, auth->transaction_id); in dpp_reconfig_build_req()
170 wpabuf_put_le16(msg, os_strlen(auth->conf->connector)); in dpp_reconfig_build_req()
171 wpabuf_put_str(msg, auth->conf->connector); in dpp_reconfig_build_req()
175 wpabuf_put_le16(msg, auth->curve->nonce_len); in dpp_reconfig_build_req()
176 wpabuf_put_data(msg, auth->c_nonce, auth->curve->nonce_len); in dpp_reconfig_build_req()
243 struct dpp_authentication *auth; in dpp_reconfig_init() local
292 auth = dpp_alloc_auth(dpp, msg_ctx); in dpp_reconfig_init()
[all …]
H A Ddpp.c42 void dpp_auth_fail(struct dpp_authentication *auth, const char *txt) in dpp_auth_fail() argument
44 wpa_msg(auth->msg_ctx, MSG_INFO, DPP_EVENT_FAIL "%s", txt); in dpp_auth_fail()
580 static int dpp_channel_intersect(struct dpp_authentication *auth, in dpp_channel_intersect() argument
584 struct dpp_bootstrap_info *peer_bi = auth->peer_bi; in dpp_channel_intersect()
589 if (freq_included(auth->freq, auth->num_freq, freq)) in dpp_channel_intersect()
592 auth->freq[auth->num_freq++] = freq; in dpp_channel_intersect()
594 if (!auth->num_freq) { in dpp_channel_intersect()
599 auth->curr_freq = auth->freq[0]; in dpp_channel_intersect()
604 static int dpp_channel_local_list(struct dpp_authentication *auth, in dpp_channel_local_list() argument
612 auth->num_freq = 0; in dpp_channel_local_list()
[all …]
H A Ddpp_tcp.c29 struct dpp_authentication *auth; member
32 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
34 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth);
86 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
87 bool (*tcp_msg_sent)(void *ctx, struct dpp_authentication *auth);
121 dpp_auth_deinit(conn->auth); in dpp_connection_free()
228 struct dpp_authentication *auth = conn->auth; in dpp_controller_gas_done() local
230 if (auth->waiting_csr) { in dpp_controller_gas_done()
237 if (auth->waiting_new_key) { in dpp_controller_gas_done()
244 if (auth->peer_version >= 2 && in dpp_controller_gas_done()
[all …]
H A Ddpp_crypto.c444 int dpp_derive_bk_ke(struct dpp_authentication *auth) in dpp_derive_bk_ke() argument
446 unsigned int hash_len = auth->curve->hash_len; in dpp_derive_bk_ke()
447 size_t nonce_len = auth->curve->nonce_len; in dpp_derive_bk_ke()
455 if (!auth->Mx_len || !auth->Nx_len) { in dpp_derive_bk_ke()
462 os_memcpy(nonces, auth->i_nonce, nonce_len); in dpp_derive_bk_ke()
463 os_memcpy(&nonces[nonce_len], auth->r_nonce, nonce_len); in dpp_derive_bk_ke()
464 addr[num_elem] = auth->Mx; in dpp_derive_bk_ke()
465 len[num_elem] = auth->Mx_len; in dpp_derive_bk_ke()
467 addr[num_elem] = auth->Nx; in dpp_derive_bk_ke()
468 len[num_elem] = auth->Nx_len; in dpp_derive_bk_ke()
[all …]
H A Ddpp_i.h33 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);
66 struct wpabuf * dpp_build_enveloped_data(struct dpp_authentication *auth);
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);
[all …]
/freebsd/crypto/openssl/test/ssl-tests/
H A D04-client_auth.cnf5 test-0 = 0-server-auth-flex
6 test-1 = 1-client-auth-flex-request
7 test-2 = 2-client-auth-flex-require-fail
8 test-3 = 3-client-auth-flex-require
9 test-4 = 4-client-auth-flex-require-non-empty-names
10 test-5 = 5-client-auth-flex-noroot
11 test-6 = 6-server-auth-TLSv1
12 test-7 = 7-client-auth-TLSv1-request
13 test-8 = 8-client-auth-TLSv1-require-fail
14 test-9 = 9-client-auth-TLSv1-require
[all …]
H A D26-tls13_client_auth.cnf5 test-0 = 0-server-auth-TLSv1.3
6 test-1 = 1-client-auth-TLSv1.3-request
7 test-2 = 2-client-auth-TLSv1.3-require-fail
8 test-3 = 3-client-auth-TLSv1.3-require
9 test-4 = 4-client-auth-TLSv1.3-require-non-empty-names
10 test-5 = 5-client-auth-TLSv1.3-noroot
11 test-6 = 6-client-auth-TLSv1.3-request-post-handshake
12 test-7 = 7-client-auth-TLSv1.3-require-fail-post-handshake
13 test-8 = 8-client-auth-TLSv1.3-require-post-handshake
14 test-9 = 9-client-auth-TLSv1.3-require-non-empty-names-post-handshake
[all …]
H A D23-srp.cnf7 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
86 client = 2-srp-auth-client
88 [2-srp-auth-server]
94 [2-srp-auth-client]
102 server = 2-srp-auth-server-extra
[all …]
H A D26-tls13_client_auth.cnf.in22 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",
193 name => "client-auth-TLSv1.3-require-non-empty-names-post-handshake",
[all …]
/freebsd/lib/libc/rpc/
H A Dauth_unix.c82 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument
95 AUTH *auth; in authunix_create() local
102 auth = mem_alloc(sizeof(*auth)); in authunix_create()
104 if (auth == NULL) { in authunix_create()
116 auth->ah_ops = authunix_ops(); in authunix_create()
117 auth->ah_private = (caddr_t)au; in authunix_create()
118 auth->ah_verf = au->au_shcred = _null_auth; in authunix_create()
154 auth->ah_cred = au->au_origcred; in authunix_create()
155 marshal_new_auth(auth); in authunix_create()
156 return (auth); in authunix_create()
[all …]
H A Dauth_des.c60 #define AUTH_PRIVATE(auth) (struct ad_private *) auth->ah_private argument
151 AUTH *auth; in authdes_pk_seccreate() local
158 auth = ALLOC(AUTH); in authdes_pk_seccreate()
159 if (auth == NULL) { in authdes_pk_seccreate()
205 if (key_gendes(&auth->ah_key) < 0) { in authdes_pk_seccreate()
211 auth->ah_key = *ckey; in authdes_pk_seccreate()
217 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
218 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
219 auth->ah_ops = authdes_ops(); in authdes_pk_seccreate()
220 auth->ah_private = (caddr_t)ad; in authdes_pk_seccreate()
[all …]
/freebsd/include/rpc/
H A Dauth.h204 #define AUTH_NEXTVERF(auth) \ argument
205 ((*((auth)->ah_ops->ah_nextverf))(auth))
206 #define auth_nextverf(auth) \ argument
207 ((*((auth)->ah_ops->ah_nextverf))(auth))
209 #define AUTH_MARSHALL(auth, xdrs) \ argument
210 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
211 #define auth_marshall(auth, xdrs) \ argument
212 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
214 #define AUTH_VALIDATE(auth, verfp) \ argument
215 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
[all …]
/freebsd/sys/rpc/
H A Dauth_unix.c97 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument
129 AUTH *auth; in authunix_create() local
180 auth = mem_alloc(sizeof(*auth)); in authunix_create()
182 auth->ah_ops = &authunix_ops; in authunix_create()
183 auth->ah_private = (caddr_t)au; in authunix_create()
184 auth->ah_verf = au->au_shcred = _null_auth; in authunix_create()
189 au->au_auth = auth; in authunix_create()
209 auth->ah_cred = au->au_origcred; in authunix_create()
210 marshal_new_auth(auth); in authunix_create()
220 AUTH_DESTROY(auth); in authunix_create()
[all …]
H A Dauth.h206 #define AUTH_NEXTVERF(auth) \ argument
207 ((*((auth)->ah_ops->ah_nextverf))(auth))
209 #define AUTH_MARSHALL(auth, xid, xdrs, args) \ argument
210 ((*((auth)->ah_ops->ah_marshal))(auth, xid, xdrs, args))
212 #define AUTH_VALIDATE(auth, xid, verfp, resultsp) \ argument
213 ((*((auth)->ah_ops->ah_validate))((auth), xid, verfp, resultsp))
215 #define AUTH_REFRESH(auth, msg) \ argument
216 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
218 #define AUTH_DESTROY(auth) \ argument
219 ((*((auth)->ah_ops->ah_destroy))(auth))
/freebsd/contrib/wpa/wpa_supplicant/
H A Ddpp_supplicant.c58 struct dpp_authentication *auth);
59 static bool wpas_dpp_tcp_msg_sent(void *ctx, struct dpp_authentication *auth);
78 struct dpp_authentication *auth = wpa_s->dpp_auth; in wpas_dpp_qr_code() local
84 if (auth && auth->response_pending && in wpas_dpp_qr_code()
85 dpp_notify_new_qr_code(auth, bi) == 1) { in wpas_dpp_qr_code()
90 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in wpas_dpp_qr_code()
92 offchannel_send_action(wpa_s, auth->curr_freq, in wpas_dpp_qr_code()
93 auth->peer_mac_addr, wpa_s->own_addr, in wpas_dpp_qr_code()
95 wpabuf_head(auth->resp_msg), in wpas_dpp_qr_code()
96 wpabuf_len(auth->resp_msg), in wpas_dpp_qr_code()
[all …]
H A Dwpa_priv.c248 struct privsep_cmd_authenticate *auth; in wpa_priv_cmd_authenticate() local
254 if (len < sizeof(*auth)) { in wpa_priv_cmd_authenticate()
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()
266 params.freq = auth->freq; in wpa_priv_cmd_authenticate()
267 params.bssid = auth->bssid; in wpa_priv_cmd_authenticate()
268 params.ssid = auth->ssid; in wpa_priv_cmd_authenticate()
269 if (auth->ssid_len > SSID_MAX_LEN) in wpa_priv_cmd_authenticate()
271 params.ssid_len = auth->ssid_len; in wpa_priv_cmd_authenticate()
272 params.auth_alg = auth->auth_alg; in wpa_priv_cmd_authenticate()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dbuild_auth.c113 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()
123 copy_Realm(&cred->client->realm, &auth.crealm); in _krb5_build_authenticator()
124 copy_PrincipalName(&cred->client->name, &auth.cname); in _krb5_build_authenticator()
126 krb5_us_timeofday (context, &auth.ctime, &auth.cusec); in _krb5_build_authenticator()
128 ret = krb5_auth_con_getlocalsubkey(context, auth_context, &auth.subkey); in _krb5_build_authenticator()
137 ALLOC(auth.seq_number, 1); in _krb5_build_authenticator()
138 if(auth.seq_number == NULL) { in _krb5_build_authenticator()
142 *auth.seq_number = auth_context->local_seqnumber; in _krb5_build_authenticator()
[all …]
/freebsd/lib/librpcsec_gss/
H A Drpcsec_gss.c79 static bool_t rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret);
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()
178 auth->ah_ops = &rpc_gss_ops; in rpc_gss_seccreate()
179 auth->ah_private = (caddr_t) gd; in rpc_gss_seccreate()
180 auth->ah_cred.oa_flavor = RPCSEC_GSS; in rpc_gss_seccreate()
212 clnt->cl_auth = auth; in rpc_gss_seccreate()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Ddpp_hostapd.c35 struct dpp_authentication *auth);
41 struct dpp_authentication *auth,
44 struct dpp_authentication *auth);
59 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code() local
65 if (auth && auth->response_pending && in hostapd_dpp_qr_code()
66 dpp_notify_new_qr_code(auth, bi) == 1) { in hostapd_dpp_qr_code()
71 MAC2STR(auth->peer_mac_addr), auth->curr_freq, in hostapd_dpp_qr_code()
73 hostapd_drv_send_action(hapd, auth->curr_freq, 0, in hostapd_dpp_qr_code()
74 auth->peer_mac_addr, in hostapd_dpp_qr_code()
174 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry_timeout() local
[all …]
/freebsd/usr.sbin/ppp/
H A Dchap.c320 chap->auth.physical->dl->bundle, 0, pid); in chap_StartChild()
330 write(in[1], chap->auth.in.name, strlen(chap->auth.in.name)); in chap_StartChild()
376 ans = chap_BuildAnswer(name, key, chap->auth.id, chap->challenge.peer in chap_Respond()
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()
454 int lanman = chap->auth.physical->link.lcp.his_authtype == 0x80 && in chap_Read()
456 IsAccepted(chap->auth.physical->link.lcp.cfg.chap80lm)) || in chap_Read()
457 !IsAccepted(chap->auth.physical->link.lcp.cfg.chap80nt)); in chap_Read()
469 , chap->auth.physical->link.lcp.his_authtype, lanman in chap_Read()
493 len = strlen(authp->physical->dl->bundle->cfg.auth.name); in chap_ChallengeInit()
[all …]
/freebsd/sys/rpc/rpcsec_gss/
H A Drpcsec_gss.c90 static bool_t rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret);
146 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument
196 AUTH *auth; in rpc_gss_secfind() local
256 auth = rpc_gss_seccreate_int(clnt, cred, NULL, principal, mech_oid, in rpc_gss_secfind()
258 if (!auth) in rpc_gss_secfind()
261 gd = AUTH_PRIVATE(auth); in rpc_gss_secfind()
275 AUTH_DESTROY(auth); in rpc_gss_secfind()
286 return (auth); in rpc_gss_secfind()
335 rpc_gss_refresh_auth(AUTH *auth) in rpc_gss_refresh_auth() argument
340 gd = AUTH_PRIVATE(auth); in rpc_gss_refresh_auth()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_auth.c148 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/secure/usr.sbin/sshd/
H A DMakefile7 SRCS= sshd.c auth-rhosts.c auth-passwd.c \
10 auth.c auth2.c auth-options.c session.c \
12 auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c \
14 monitor.c monitor_wrap.c auth-krb5.c \
16 loginrec.c auth-pam.c auth-shadow.c auth-sia.c \
/freebsd/usr.sbin/ctld/
H A Dctld.c141 static struct auth *
144 struct auth *auth; in auth_new() local
146 auth = calloc(1, sizeof(*auth)); in auth_new()
147 if (auth == NULL) in auth_new()
149 auth->a_auth_group = ag; in auth_new()
150 TAILQ_INSERT_TAIL(&ag->ag_auths, auth, a_next); in auth_new()
151 return (auth); in auth_new()
155 auth_delete(struct auth *auth) in auth_delete() argument
157 TAILQ_REMOVE(&auth->a_auth_group->ag_auths, auth, a_next); in auth_delete()
159 free(auth->a_user); in auth_delete()
[all …]

12345678910>>...18