| /freebsd-12.1/tools/regression/security/proc_to_proc/ |
| H A D | scenario.c | 94 { &creds[0], &creds[0], 0, 0, 0, 0, 0, 0, "0. priv on priv"}, 95 { &creds[0], &creds[1], 0, 0, 0, 0, 0, 0, "1. priv on priv"}, 96 { &creds[1], &creds[0], 0, 0, 0, 0, 0, 0, "2. priv on priv"}, 97 { &creds[1], &creds[1], 0, 0, 0, 0, 0, 0, "3. priv on priv"}, 99 { &creds[0], &creds[2], 0, 0, 0, 0, 0, 0, "4. priv on unpriv1"}, 100 { &creds[0], &creds[3], 0, 0, 0, 0, 0, 0, "5. priv on unpriv1"}, 101 { &creds[1], &creds[2], 0, 0, 0, 0, 0, 0, "6. priv on unpriv1"}, 102 { &creds[1], &creds[3], 0, 0, 0, 0, 0, 0, "7. priv on unpriv1"}, 109 { &creds[2], &creds[2], 0, 0, 0, 0, 0, 0, "12. unpriv1 on unpriv1"}, 111 { &creds[3], &creds[2], 0, 0, 0, 0, 0, 0, "14. unpriv1 on unpriv1"}, [all …]
|
| /freebsd-12.1/crypto/heimdal/lib/krb5/ |
| H A D | rd_error.c | 73 const krb5_creds *creds) in krb5_error_from_rd_error() argument 83 if (creds != NULL) { in krb5_error_from_rd_error() 94 creds ? "(" : "", in krb5_error_from_rd_error() 95 creds ? clientname : "", in krb5_error_from_rd_error() 96 creds ? ")" : ""); in krb5_error_from_rd_error() 101 creds ? "(" : "", in krb5_error_from_rd_error() 103 creds ? ")" : ""); in krb5_error_from_rd_error() 108 creds ? "(" : "", in krb5_error_from_rd_error() 110 creds ? ")" : ""); in krb5_error_from_rd_error() 115 creds ? "(" : "", in krb5_error_from_rd_error() [all …]
|
| H A D | store.c | 1362 memset(creds, 0, sizeof(*creds)); in krb5_ret_creds() 1384 creds->flags.i = 0; in krb5_ret_creds() 1386 if (creds->flags.i & mask) in krb5_ret_creds() 1433 if (creds->client) in krb5_store_creds_tag() 1435 if (creds->server) in krb5_store_creds_tag() 1439 if (creds->ticket.data) in krb5_store_creds_tag() 1452 if (creds->client) { in krb5_store_creds_tag() 1458 if (creds->server) { in krb5_store_creds_tag() 1521 krb5_creds *creds) in krb5_ret_creds_tag() argument 1527 memset(creds, 0, sizeof(*creds)); in krb5_ret_creds_tag() [all …]
|
| H A D | rd_cred.c | 260 krb5_creds *creds; in krb5_rd_cred() local 262 creds = calloc(1, sizeof(*creds)); in krb5_rd_cred() 263 if(creds == NULL) { in krb5_rd_cred() 270 ASN1_MALLOC_ENCODE(Ticket, creds->ticket.data, creds->ticket.length, in krb5_rd_cred() 273 free(creds); in krb5_rd_cred() 281 &creds->client, in krb5_rd_cred() 296 &creds->server, in krb5_rd_cred() 302 &creds->addresses); in krb5_rd_cred() 333 krb5_creds **creds; in krb5_rd_cred2() local 342 for(i = 0; creds && creds[i]; i++) { in krb5_rd_cred2() [all …]
|
| H A D | creds.c | 217 creds->server); in krb5_compare_creds() 220 creds->server); in krb5_compare_creds() 226 creds->client); in krb5_compare_creds() 229 creds->client); in krb5_compare_creds() 236 match = mcreds->flags.i == creds->flags.i; in krb5_compare_creds() 251 if(mcreds->authdata.len != creds->authdata.len) in krb5_compare_creds() 256 creds->authdata.val[i].ad_type) && in krb5_compare_creds() 258 &creds->authdata.val[i].ad_data) == 0); in krb5_compare_creds() 265 (creds->second_ticket.length == 0)); in krb5_compare_creds() 282 krb5_creds_get_ticket_flags(krb5_creds *creds) in krb5_creds_get_ticket_flags() argument [all …]
|
| H A D | ticket.c | 652 krb5_creds *creds, in _krb5_extract_ticket() argument 702 creds->client, in _krb5_extract_ticket() 704 &creds->session); in _krb5_extract_ticket() 724 creds->server, in _krb5_extract_ticket() 726 &creds->session); in _krb5_extract_ticket() 813 if (creds->times.endtime != 0 in _krb5_extract_ticket() 827 creds->addresses.len = 0; in _krb5_extract_ticket() 828 creds->addresses.val = NULL; in _krb5_extract_ticket() 832 creds->authdata.len = 0; in _krb5_extract_ticket() 833 creds->authdata.val = NULL; in _krb5_extract_ticket() [all …]
|
| H A D | mcache.c | 46 } *creds; member 98 m->creds = NULL; in mcc_alloc() 220 l = m->creds; in mcc_destroy() 229 m->creds = NULL; in mcc_destroy() 252 l->next = m->creds; in mcc_store_cred() 253 m->creds = l; in mcc_store_cred() 257 m->creds = l->next; in mcc_store_cred() 310 creds); in mcc_get_next() 435 creds = mto->creds; in mcc_move() 436 mto->creds = mfrom->creds; in mcc_move() [all …]
|
| H A D | verify_init.c | 72 krb5_creds *creds, in krb5_verify_init_creds() argument 124 creds->client); in krb5_verify_init_creds() 129 creds); in krb5_verify_init_creds() 134 if (!krb5_principal_compare (context, server, creds->server)) { in krb5_verify_init_creds() 139 match_cred.client = creds->client; in krb5_verify_init_creds() 152 creds = new_creds; in krb5_verify_init_creds() 159 creds, in krb5_verify_init_creds() 216 krb5_creds *creds, in krb5_get_validated_creds() argument 225 if (krb5_principal_compare(context, creds->client, client) != TRUE) { in krb5_get_validated_creds() 239 ret = krb5_verify_init_creds(context, creds, server, NULL, NULL, &vopt); in krb5_get_validated_creds()
|
| H A D | get_in_tkt.c | 147 krb5_creds *creds, in init_as_req() argument 187 if(creds->times.starttime) { in init_as_req() 194 *a->req_body.from = creds->times.starttime; in init_as_req() 196 if(creds->times.endtime){ in init_as_req() 198 *a->req_body.till = creds->times.endtime; in init_as_req() 200 if(creds->times.renew_till){ in init_as_req() 374 krb5_creds *creds, in krb5_get_in_cred() argument 402 creds, in krb5_get_in_cred() 506 creds, in krb5_get_in_cred() 538 krb5_creds *creds, in krb5_get_in_tkt() argument [all …]
|
| H A D | changepw.c | 70 krb5_creds *creds, in chgpw_send_request() argument 99 creds, in chgpw_send_request() 162 krb5_creds *creds, in setpw_send_request() argument 186 creds, in setpw_send_request() 506 krb5_creds *creds, in change_password_loop() argument 526 realm = creds->client->realm; in change_password_loop() 592 creds, in change_password_loop() 689 krb5_creds *creds, in krb5_change_password() argument 731 krb5_creds *creds, in krb5_set_password() argument 781 krb5_creds creds, *credsp; in krb5_set_password_using_ccache() local [all …]
|
| H A D | sendauth.c | 85 krb5_creds *creds; in krb5_sendauth() local 147 ret = krb5_get_credentials (context, 0, ccache, in_creds, &creds); in krb5_sendauth() 154 creds = in_creds; in krb5_sendauth() 162 creds, in krb5_sendauth() 166 *out_creds = creds; in krb5_sendauth() 168 krb5_free_creds(context, creds); in krb5_sendauth()
|
| H A D | deprecated.c | 229 krb5_creds *creds, in krb5_get_in_tkt_with_password() argument 242 creds, in krb5_get_in_tkt_with_password() 271 krb5_creds *creds, in krb5_get_in_tkt_with_skey() argument 283 creds, in krb5_get_in_tkt_with_skey() 295 creds, in krb5_get_in_tkt_with_skey() 354 krb5_creds *creds, in krb5_get_in_tkt_with_keytab() argument 360 a.principal = creds->client; in krb5_get_in_tkt_with_keytab() 372 creds, in krb5_get_in_tkt_with_keytab()
|
| /freebsd-12.1/contrib/subversion/subversion/libsvn_ra_svn/ |
| H A D | internal_auth.c | 78 void *creds; in svn_ra_svn__do_internal_auth() local 96 SVN_ERR(svn_auth_first_credentials(&creds, &iterstate, in svn_ra_svn__do_internal_auth() 99 if (!creds) in svn_ra_svn__do_internal_auth() 102 while (creds) in svn_ra_svn__do_internal_auth() 104 user = ((svn_auth_cred_simple_t *) creds)->username; in svn_ra_svn__do_internal_auth() 105 password = ((svn_auth_cred_simple_t *) creds)->password; in svn_ra_svn__do_internal_auth() 110 SVN_ERR(svn_auth_next_credentials(&creds, iterstate, pool)); in svn_ra_svn__do_internal_auth() 112 if (!creds) in svn_ra_svn__do_internal_auth()
|
| /freebsd-12.1/contrib/subversion/subversion/libsvn_subr/ |
| H A D | simple_providers.c | 67 apr_hash_t *creds, in svn_auth__simple_password_get() argument 96 apr_hash_t *creds, in svn_auth__simple_password_set() argument 104 svn_hash_sets(creds, SVN_CONFIG_AUTHN_PASSWORD_KEY, in svn_auth__simple_password_set() 115 apr_hash_t *creds, in simple_username_get() argument 280 svn_auth_cred_simple_t *creds = apr_pcalloc(pool, sizeof(*creds)); in svn_auth__simple_creds_cache_get() local 281 creds->username = username; in svn_auth__simple_creds_cache_get() 282 creds->password = password; in svn_auth__simple_creds_cache_get() 283 creds->may_save = need_to_save; in svn_auth__simple_creds_cache_get() 284 *credentials = creds; in svn_auth__simple_creds_cache_get() 305 svn_auth_cred_simple_t *creds = credentials; in svn_auth__simple_creds_cache_set() local [all …]
|
| H A D | win32_crypto.c | 113 apr_hash_t *creds, in windows_password_encrypter() argument 141 apr_hash_t *creds, in windows_password_decrypter() argument 236 apr_hash_t *creds, in windows_ssl_client_cert_pw_encrypter() argument 250 SVN_ERR(svn_auth__ssl_client_cert_pw_set(done, creds, realmstring, in windows_ssl_client_cert_pw_encrypter() 265 apr_hash_t *creds, in windows_ssl_client_cert_pw_decrypter() argument 275 SVN_ERR(svn_auth__ssl_client_cert_pw_get(done, &in, creds, realmstring, in windows_ssl_client_cert_pw_decrypter() 467 svn_auth_cred_ssl_server_trust_t *creds = in windows_ssl_server_trust_first_credentials() local 468 apr_pcalloc(pool, sizeof(*creds)); in windows_ssl_server_trust_first_credentials() 469 creds->accepted_failures = *failure_ptr & ~failures; in windows_ssl_server_trust_first_credentials() 470 creds->may_save = FALSE; /* No need to save it. */ in windows_ssl_server_trust_first_credentials() [all …]
|
| H A D | auth.c | 237 void *creds = NULL; in svn_auth_first_credentials() local 278 if (creds) in svn_auth_first_credentials() 296 if (creds != NULL) in svn_auth_first_credentials() 304 if (! creds) in svn_auth_first_credentials() 325 creds); in svn_auth_first_credentials() 328 *credentials = creds; in svn_auth_first_credentials() 342 void *creds = NULL; in svn_auth_next_credentials() local 370 if (creds != NULL) in svn_auth_next_credentials() 382 *credentials = creds; in svn_auth_next_credentials() 396 void *creds; in svn_auth_save_credentials() local [all …]
|
| H A D | username_providers.c | 87 svn_auth_cred_simple_t *creds = apr_pcalloc(pool, sizeof(*creds)); in username_first_creds() local 88 creds->username = username; in username_first_creds() 89 creds->may_save = may_save; in username_first_creds() 90 *credentials = creds; in username_first_creds() 109 svn_auth_cred_simple_t *creds = credentials; in username_save_creds() local 116 if (! creds->may_save) in username_save_creds() 124 svn_string_create(creds->username, pool)); in username_save_creds()
|
| H A D | ssl_server_trust_providers.c | 90 svn_auth_cred_ssl_server_trust_t *creds = in ssl_server_trust_file_first_credentials() local 91 apr_pcalloc(pool, sizeof(*creds)); in ssl_server_trust_file_first_credentials() 92 creds->may_save = FALSE; /* No need to save it again... */ in ssl_server_trust_file_first_credentials() 93 *credentials = creds; in ssl_server_trust_file_first_credentials() 108 svn_auth_cred_ssl_server_trust_t *creds = credentials; in ssl_server_trust_file_save_credentials() local 113 if (! creds->may_save) in ssl_server_trust_file_save_credentials() 125 (unsigned long)creds->accepted_failures)); in ssl_server_trust_file_save_credentials()
|
| /freebsd-12.1/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | creds.c | 64 krb5_creds *creds; in _gsskrb5_export_cred() local 74 &creds); in _gsskrb5_export_cred() 81 ret = krb5_store_creds(sp, creds); in _gsskrb5_export_cred() 82 krb5_free_creds(context, creds); in _gsskrb5_export_cred() 189 krb5_creds creds; in _gsskrb5_import_cred() local 191 ret = krb5_ret_creds(sp, &creds); in _gsskrb5_import_cred() 204 ret = krb5_cc_initialize(context, id, creds.client); in _gsskrb5_import_cred() 211 ret = krb5_cc_store_cred(context, id, &creds); in _gsskrb5_import_cred() 212 krb5_free_cred_contents(context, &creds); in _gsskrb5_import_cred()
|
| /freebsd-12.1/crypto/heimdal/kcm/ |
| H A D | cache.c | 164 for (k = p->creds; k != NULL; k = k->next) in kcm_debug_ccache() 318 slot->creds = NULL; in kcm_ccache_alloc() 346 k = ccache->creds; in kcm_ccache_remove_creds_internal() 355 ccache->creds = NULL; in kcm_ccache_remove_creds_internal() 489 if (ccache->creds == NULL) { in kcm_ccache_destroy_if_empty() 500 krb5_creds *creds, in kcm_ccache_store_cred() argument 534 krb5_creds *creds, in kcm_ccache_store_cred_internal() argument 559 **credp = *creds; in kcm_ccache_store_cred_internal() 615 krb5_creds **creds) in kcm_ccache_retrieve_cred_internal() argument 621 memset(creds, 0, sizeof(*creds)); in kcm_ccache_retrieve_cred_internal() [all …]
|
| H A D | glue.c | 117 krb5_creds *creds) in kcmss_store_cred() argument 125 ret = kcm_ccache_store_cred_internal(context, c, creds, 1, &tmp); in kcmss_store_cred() 135 krb5_creds *creds) in kcmss_retrieve() argument 148 ret = krb5_copy_creds_contents(context, credp, creds); in kcmss_retrieve() 180 *cursor = c->creds; in kcmss_get_first() 189 krb5_creds *creds) in kcmss_get_next() argument 198 creds); in kcmss_get_next()
|
| /freebsd-12.1/contrib/subversion/subversion/include/private/ |
| H A D | svn_auth_private.h | 80 apr_hash_t *creds, 95 apr_hash_t *creds, 149 apr_hash_t *creds, 160 apr_hash_t *creds, 215 apr_hash_t *creds, 226 apr_hash_t *creds,
|
| /freebsd-12.1/contrib/subversion/subversion/libsvn_ra_serf/ |
| H A D | util.c | 224 void *creds; in ssl_server_cert() local 348 creds = NULL; in ssl_server_cert() 351 if (creds) in ssl_server_cert() 380 if (creds) in ssl_server_cert() 391 if (creds) in ssl_server_cert() 683 void *creds; in handle_client_cert() local 705 if (creds) in handle_client_cert() 737 void *creds; in handle_client_cert_pw() local 757 if (creds) in handle_client_cert_pw() 760 pw_creds = creds; in handle_client_cert_pw() [all …]
|
| /freebsd-12.1/lib/libpam/modules/pam_krb5/ |
| H A D | pam_krb5.c | 112 krb5_creds creds; in pam_sm_authenticate() local 251 memset(&creds, 0, sizeof(krb5_creds)); in pam_sm_authenticate() 282 krbret = krb5_cc_store_cred(pam_context, ccache, &creds); in pam_sm_authenticate() 339 krb5_free_cred_contents(pam_context, &creds); in pam_sm_authenticate() 369 krb5_creds creds; in pam_sm_setcred() 537 &cursor, &creds) == 0)) { in pam_sm_setcred() 543 krb5_free_cred_contents(pam_context, &creds); in pam_sm_setcred() 547 krb5_free_cred_contents(pam_context, &creds); in pam_sm_setcred() 686 krb5_creds creds; in pam_sm_chauthtok() local 752 memset(&creds, 0, sizeof(krb5_creds)); in pam_sm_chauthtok() [all …]
|
| /freebsd-12.1/crypto/heimdal/appl/kf/ |
| H A D | kf.c | 135 krb5_creds creds; in proto() local 204 memset (&creds, 0, sizeof(creds)); in proto() 220 creds.client = principal; in proto() 223 &creds.server, in proto() 235 creds.times.endtime = 0; in proto() 246 &creds, in proto()
|