| /freebsd/contrib/wpa/src/common/ |
| H A D | dpp_auth.c | 42 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 D | dpp_reconfig.c | 130 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 D | dpp.c | 42 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 D | dpp_tcp.c | 29 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 …]
|
| /freebsd/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 7 test-2 = 2-client-auth-flex-require-fail 8 test-3 = 3-client-auth-flex-require 9 test-4 = 4-client-auth-flex-rsa-pss 10 test-5 = 5-client-auth-flex-rsa-pss-bad 11 test-6 = 6-client-auth-flex-require-non-empty-names 12 test-7 = 7-client-auth-flex-noroot 13 test-8 = 8-server-auth-TLSv1 14 test-9 = 9-client-auth-TLSv1-request [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 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 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 86 client = 2-srp-auth-client 88 [2-srp-auth-server] 94 [2-srp-auth-client] 102 server = 2-srp-auth-server-extra [all …]
|
| /freebsd/crypto/krb5/src/include/gssrpc/ |
| H A D | auth.h | 1 /* @(#)auth.h 2.3 88/08/07 4.0 RPCSRC; from 1.17 88/02/08 SMI */ 36 * auth.h, Authentication interface. 39 * is required to pass a AUTH * to routines that create rpc 87 enum_t oa_flavor; /* flavor of auth */ 88 caddr_t oa_base; /* address of more auth stuff */ 94 * Auth handle, interface to client side authenticators. 98 typedef struct AUTH { struct 103 void (*ah_nextverf)(struct AUTH *); argument 105 int (*ah_marshal)(struct AUTH *, XDR *); 107 int (*ah_validate)(struct AUTH *, [all …]
|
| /freebsd/lib/libc/rpc/ |
| H A D | auth_unix.c | 58 #include <rpc/auth.h> 64 static void authunix_nextverf (AUTH *); 65 static bool_t authunix_marshal (AUTH *, XDR *); 66 static bool_t authunix_validate (AUTH *, struct opaque_auth *); 67 static bool_t authunix_refresh (AUTH *, void *); 68 static void authunix_destroy (AUTH *); 69 static void marshal_new_auth (AUTH *); 82 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 86 * Returns an auth handle with the given stuff in it. 88 AUTH * [all …]
|
| /freebsd/crypto/krb5/src/lib/rpc/ |
| H A D | auth_gssapi.c | 38 static void auth_gssapi_nextverf(AUTH *); 39 static bool_t auth_gssapi_marshall(AUTH *, XDR *); 40 static bool_t auth_gssapi_validate(AUTH *, struct opaque_auth *); 41 static bool_t auth_gssapi_refresh(AUTH *, struct rpc_msg *); 42 static bool_t auth_gssapi_wrap(AUTH *, XDR *, xdrproc_t, caddr_t); 43 static bool_t auth_gssapi_unwrap(AUTH *, XDR *, xdrproc_t, caddr_t); 44 static void auth_gssapi_destroy(AUTH *); 46 static bool_t marshall_new_creds(AUTH *, bool_t, gss_buffer_t); 73 #define AUTH_PRIVATE(auth) ((struct auth_gssapi_data *)auth->ah_private) argument 83 AUTH *auth_gssapi_create_default(CLIENT *clnt, char *service_name) in auth_gssapi_create_default() [all …]
|
| H A D | auth_unix.c | 55 #include <gssrpc/auth.h> 61 static void authunix_nextverf(AUTH *); 62 static bool_t authunix_marshal(AUTH *, XDR *); 63 static bool_t authunix_validate(AUTH *, struct opaque_auth *); 64 static bool_t authunix_refresh(AUTH *, struct rpc_msg *); 65 static void authunix_destroy(AUTH *); 66 static bool_t authunix_wrap(AUTH *, XDR *, xdrproc_t, caddr_t); 88 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 90 static void marshal_new_auth(AUTH *); 95 * Returns an auth handle with the given stuff in it. [all …]
|
| H A D | auth_gss.c | 46 #include <gssrpc/auth.h> 63 static void authgss_nextverf(AUTH *); 64 static bool_t authgss_marshal(AUTH *, XDR *); 65 static bool_t authgss_refresh(AUTH *, struct rpc_msg *); 66 static bool_t authgss_validate(AUTH *, struct opaque_auth *); 67 static void authgss_destroy(AUTH *); 68 static void authgss_destroy_context(AUTH *); 69 static bool_t authgss_wrap(AUTH *, XDR *, xdrproc_t, caddr_t); 70 static bool_t authgss_unwrap(AUTH *, XDR *, xdrproc_t, caddr_t); 156 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument [all …]
|
| H A D | auth_none.c | 46 #include <gssrpc/auth.h> 53 static void authnone_verf(AUTH *); 54 static void authnone_destroy(AUTH *); 55 static bool_t authnone_marshal(AUTH *, XDR *); 56 static bool_t authnone_validate(AUTH *, struct opaque_auth *); 57 static bool_t authnone_refresh(AUTH *, struct rpc_msg *); 58 static bool_t authnone_wrap(AUTH *, XDR *, xdrproc_t, caddr_t); 71 AUTH no_client; 76 AUTH * 105 authnone_marshal(AUTH *client, XDR *xdrs) in authnone_marshal() [all …]
|
| /freebsd/sys/rpc/ |
| H A D | auth_unix.c | 59 #include <rpc/auth.h> 65 static void authunix_nextverf (AUTH *); 66 static bool_t authunix_marshal (AUTH *, uint32_t, XDR *, struct mbuf *); 67 static bool_t authunix_validate (AUTH *, uint32_t, struct opaque_auth *, 69 static bool_t authunix_refresh (AUTH *, void *); 70 static void authunix_destroy (AUTH *); 71 static void marshal_new_auth (AUTH *); 94 AUTH *au_auth; /* link back to AUTH */ 97 #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) argument 120 * Returns an auth handle with the given stuff in it. [all …]
|
| H A D | auth.h | 1 /* $NetBSD: auth.h,v 1.15 2000/06/02 22:57:55 fvdl Exp $ */ 34 * auth.h, Authentication interface. 39 * is required to pass an AUTH * to routines that create rpc 167 enum_t oa_flavor; /* flavor of auth */ 168 caddr_t oa_base; /* address of more auth stuff */ 174 * Auth handle, interface to client side authenticators. 195 } AUTH; typedef 200 * The ops and the auth handle provide the interface to the authenticators. 202 * AUTH *auth; 206 #define AUTH_NEXTVERF(auth) \ argument [all …]
|
| H A D | rpcsec_gss.h | 151 typedef AUTH *rpc_gss_secfind_ftype(CLIENT *clnt, struct ucred *cred, 155 typedef AUTH *rpc_gss_seccreate_ftype(CLIENT *clnt, struct ucred *cred, 160 typedef bool_t rpc_gss_set_defaults_ftype(AUTH *auth, 162 typedef int rpc_gss_max_data_length_ftype(AUTH *handle, 186 typedef void rpc_gss_refresh_auth_ftype(AUTH *auth); 216 static __inline AUTH * 220 AUTH *ret = NULL; in rpc_gss_secfind_call() 236 static __inline AUTH * 242 AUTH *ret = NULL; in rpc_gss_seccreate_call() 252 rpc_gss_set_defaults_call(AUTH *auth, rpc_gss_service_t service, in rpc_gss_set_defaults_call() argument [all …]
|
| /freebsd/include/rpc/ |
| H A D | auth.h | 1 /* $NetBSD: auth.h,v 1.15 2000/06/02 22:57:55 fvdl Exp $ */ 34 * auth.h, Authentication interface. 39 * is required to pass an AUTH * to routines that create rpc 167 enum_t oa_flavor; /* flavor of auth */ 168 caddr_t oa_base; /* address of more auth stuff */ 174 * Auth handle, interface to client side authenticators. 193 } AUTH; typedef 198 * The ops and the auth handle provide the interface to the authenticators. 200 * AUTH *auth; 204 #define AUTH_NEXTVERF(auth) \ argument [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | dpp_supplicant.c | 58 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 D | ibss_rsn.c | 42 wpa_auth_sta_deinit(peer->auth); in ibss_rsn_free() 269 wpa_printf(MSG_DEBUG, "AUTH: " MACSTR " - %s", in auth_logger() 272 wpa_printf(MSG_DEBUG, "AUTH: %s", txt); in auth_logger() 286 wpa_printf(MSG_DEBUG, "AUTH: %s (addr=" MACSTR " prev_psk=%p)", in auth_get_psk() 300 wpa_printf(MSG_DEBUG, "AUTH: %s(addr=" MACSTR " data_len=%lu " in auth_send_eapol() 326 wpa_printf(MSG_DEBUG, "AUTH: %s(alg=%d addr=" MACSTR in auth_set_key() 330 wpa_printf(MSG_DEBUG, "AUTH: %s(alg=%d key_idx=%d)", in auth_set_key() 333 wpa_hexdump_key(MSG_DEBUG, "AUTH: set_key - key", key, key_len); in auth_set_key() 351 wpa_printf(MSG_DEBUG, "AUTH: Do not use this PTK"); in auth_set_key() 375 wpa_printf(MSG_DEBUG, "AUTH: for_each_sta"); in auth_for_each_sta() [all …]
|
| /freebsd/lib/librpcsec_gss/ |
| H A D | rpcsec_gss.c | 77 static void rpc_gss_nextverf(AUTH*); 78 static bool_t rpc_gss_marshal(AUTH *, XDR *); 79 static bool_t rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret); 80 static bool_t rpc_gss_refresh(AUTH *, void *); 81 static bool_t rpc_gss_validate(AUTH *, struct opaque_auth *); 82 static void rpc_gss_destroy(AUTH *); 83 static void rpc_gss_destroy_context(AUTH *, bool_t); 115 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument 119 AUTH * 124 AUTH *auth, *save_auth; in rpc_gss_seccreate() local [all …]
|
| /freebsd/usr.sbin/ctld/ |
| H A D | ctl.conf.5 | 50 .No auth-group Ar name No { 58 .Dl discovery-auth-group Ar name 68 .Dl auth-group Ar name 77 .Dl auth-group Ar name 87 .It Ic auth-group Ar name 89 .Sy auth-group 91 defining a new auth-group, 149 .Ss auth-group Context 151 .It Ic auth-type Ar type 161 .Sy auth-group . [all …]
|
| /freebsd/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() 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/sys/rpc/rpcsec_gss/ |
| H A D | rpcsec_gss.c | 89 static void rpc_gss_nextverf(AUTH*); 90 static bool_t rpc_gss_marshal(AUTH *, uint32_t, XDR *, struct mbuf *); 91 static bool_t rpc_gss_init(AUTH *auth, rpc_gss_options_ret_t *options_ret); 92 static bool_t rpc_gss_refresh(AUTH *, void *); 93 static bool_t rpc_gss_validate(AUTH *, uint32_t, struct opaque_auth *, 95 static void rpc_gss_destroy(AUTH *); 96 static void rpc_gss_destroy_context(AUTH *, bool_t); 124 AUTH *gd_auth; /* link back to AUTH */ 147 #define AUTH_PRIVATE(auth) ((struct rpc_gss_data *)auth->ah_private) argument 158 static AUTH *rpc_gss_seccreate_int(CLIENT *, struct ucred *, const char *, [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | dpp_hostapd.c | 35 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 D | chap.c | 64 #include "auth.h" 221 /* Generate AUTHRESPONSE to verify on auth success */ in chap_BuildAnswer() 320 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() [all …]
|