/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | ser_cc.c | 66 krb5_ccache ccache; in krb5_ccache_size() local 70 if ((ccache = (krb5_ccache) arg)) { in krb5_ccache_size() 78 if (ccache->ops && ccache->ops->prefix) in krb5_ccache_size() 79 required += (strlen(ccache->ops->prefix)+1); in krb5_ccache_size() 85 required += strlen(krb5_cc_get_name(kcontext, ccache)); in krb5_ccache_size() 100 krb5_ccache ccache; in krb5_ccache_externalize() local 112 if ((ccache = (krb5_ccache) arg)) { in krb5_ccache_externalize() 120 namelen = (ccache->ops && ccache->ops->prefix) ? in krb5_ccache_externalize() 121 strlen(ccache->ops->prefix)+1 : 0; in krb5_ccache_externalize() 122 fnamep = krb5_cc_get_name(kcontext, ccache); in krb5_ccache_externalize() [all …]
|
H A D | ccdefault.c | 46 krb5_cc_default(krb5_context context, krb5_ccache *ccache) in krb5_cc_default() argument 55 return krb5_cc_resolve(context, krb5_cc_default_name(context), ccache); in krb5_cc_default() 66 krb5int_cc_default(krb5_context context, krb5_ccache *ccache) in krb5int_cc_default() argument 113 return krb5_cc_default (context, ccache); in krb5int_cc_default()
|
H A D | cc_memory.c | 725 krb5_ccache *ccache) in krb5_mcc_ptcursor_next() argument 730 *ccache = NULL; in krb5_mcc_ptcursor_next() 735 *ccache = malloc(sizeof(**ccache)); in krb5_mcc_ptcursor_next() 736 if (*ccache == NULL) in krb5_mcc_ptcursor_next() 739 (*ccache)->ops = &krb5_mcc_ops; in krb5_mcc_ptcursor_next() 740 (*ccache)->data = cdata->cur->cache; in krb5_mcc_ptcursor_next() 749 if (ret && *ccache != NULL) { in krb5_mcc_ptcursor_next() 750 free(*ccache); in krb5_mcc_ptcursor_next() 751 *ccache = NULL; in krb5_mcc_ptcursor_next()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | acquire_cred.c | 242 krb5_ccache ccache; local 250 cred->ccache = NULL; 278 err = krb5_cc_resolve (context, ccache_name, &ccache); 306 if ((code = krb5_cc_resolve (context, ccname, &ccache))) { 313 if ((code = krb5int_cc_default(context, &ccache))) { 324 if ((code = krb5int_cc_default(context, &ccache))) { 338 if ((code = krb5_cc_set_flags(context, ccache, flags))) { 339 (void)krb5_cc_close(context, ccache); 346 if ((code = krb5_cc_get_principal(context, ccache, &princ))) { 348 (void)krb5_cc_set_flags(context, ccache, KRB5_TC_OPENCLOSE); [all …]
|
H A D | acquire_cred_with_pw.c | 125 cred->ccache = NULL; 188 cred->ccache = ccache2; 305 cred->ccache = NULL; 362 if (cred->ccache) 363 (void) krb5_cc_close(context, cred->ccache); 383 if (cred->ccache) 384 (void) krb5_cc_close(context, cred->ccache); 413 if (cred->ccache) 414 (void) krb5_cc_close(context, cred->ccache); 432 if (cred->ccache) [all …]
|
H A D | store_cred.c | 48 krb5_ccache ccache = NULL; /* current [file] ccache */ local 56 if ((code = krb5_cc_default(ct, &ccache))) { 87 if ((code = krb5_cc_initialize(ct, ccache, cred->princ))) { 98 if ((code = krb5_cc_copy_creds(ct, cred->ccache, ccache))) { 107 if (ccache != NULL) 109 krb5_cc_close(ct, ccache);
|
H A D | rel_cred.c | 61 if (cred->ccache) { 71 if (strcmp("MEMORY", krb5_cc_get_type(context, cred->ccache)) == 0) 72 code1 = krb5_cc_destroy(context, cred->ccache); 74 code1 = krb5_cc_close(context, cred->ccache);
|
H A D | copy_ccache.c | 44 code = krb5_cc_start_seq_get(context, k5creds->ccache, &cursor); 52 while (!code && !krb5_cc_next_cred(context, k5creds->ccache, &cursor, &creds)) 54 krb5_cc_end_seq_get(context, k5creds->ccache, &cursor);
|
H A D | add_cred.c | 299 if (cred->ccache) { 300 cctype = krb5_cc_get_type(context, cred->ccache); 301 ccname = krb5_cc_get_name(context, cred->ccache); 322 code = krb5_cc_resolve(context, ccboth, &new_cred->ccache); 337 new_cred->ccache = NULL; 343 if (new_cred->ccache) 344 krb5_cc_close(context, new_cred->ccache);
|
H A D | init_sec_context.c | 129 code = krb5_get_credentials(context, 0, cred->ccache, 187 data->cred->ccache, 1, in make_gss_checksum() 1395 krb5_ccache ccache = NULL; in load_root_cred_using_keytab() local 1531 &ccache); in load_root_cred_using_keytab() 1539 code = krb5_cc_initialize (context, ccache, me); in load_root_cred_using_keytab() 1545 (void) krb5_cc_close(context, ccache); in load_root_cred_using_keytab() 1550 code = krb5_cc_store_cred(context, ccache, in load_root_cred_using_keytab() 1553 (void) krb5_cc_close(context, ccache); in load_root_cred_using_keytab() 1578 krb5_ccache ccache = NULL; in renew_ccache() local 1591 if ((code = krb5_cc_default(context, &ccache))) { in renew_ccache() [all …]
|
H A D | accept_sec_context.c | 105 krb5_ccache ccache = NULL; local 174 if ((retval = krb5_cc_new_unique(context, "MEMORY", NULL, &ccache))) { 175 ccache = NULL; 179 if ((retval = krb5_cc_initialize(context, ccache, creds[0]->client))) { 186 if ((retval = krb5_cc_store_cred(context, ccache, creds[0]))) { 233 cred->ccache = ccache; /* the ccache containing the credential */ 234 ccache = NULL; /* cred takes ownership so don't destroy */ 246 if (ccache) 247 (void)krb5_cc_destroy(context, ccache); 1204 if (deleg_cred->ccache) [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | get_creds.c | 132 krb5_ccache ccache, krb5_creds *in_creds, in krb5_get_credentials() argument 158 if ((retval = krb5_cc_retrieve_cred(context, ccache, fields, &mcreds, in krb5_get_credentials() 177 retval = krb5_get_cred_from_kdc(context, ccache, ncreds, out_creds, &tgts); in krb5_get_credentials() 183 if ((rv2 = krb5_cc_store_cred(context, ccache, tgts[i])) != 0) { in krb5_get_credentials() 214 retval = krb5_cc_store_cred(context, ccache, *out_creds); in krb5_get_credentials() 227 krb5_ccache ccache, krb5_creds *in_creds, in krb5_get_credentials_val_renew_core() argument 236 retval = krb5_get_cred_from_kdc_validate(context, ccache, in krb5_get_credentials_val_renew_core() 240 retval = krb5_get_cred_from_kdc_renew(context, ccache, in krb5_get_credentials_val_renew_core() 251 retval = krb5_cc_get_principal(context, ccache, &tmp); in krb5_get_credentials_val_renew_core() 254 retval = krb5_cc_initialize(context, ccache, tmp); in krb5_get_credentials_val_renew_core() [all …]
|
H A D | vfy_increds.c | 77 krb5_ccache ccache; in krb5_verify_init_creds() local 87 ccache = NULL; in krb5_verify_init_creds() 165 if ((ret = krb5_cc_resolve(context, "MEMORY:rd_req", &ccache))) in krb5_verify_init_creds() 168 if ((ret = krb5_cc_initialize(context, ccache, creds->client)) != NULL) in krb5_verify_init_creds() 172 if ((ret = krb5_cc_store_cred(context, ccache, creds)) != NULL) in krb5_verify_init_creds() 183 if ((ret = krb5_get_credentials(context, 0, ccache, &in_creds, in krb5_verify_init_creds() 208 if (ccache_arg && ccache) { in krb5_verify_init_creds() 217 ((ret = krb5_cc_copy_creds_except(context, ccache, retcc, in krb5_verify_init_creds() 226 ret = krb5_cc_copy_creds_except(context, ccache, *ccache_arg, in krb5_verify_init_creds() 241 if (ccache) in krb5_verify_init_creds() [all …]
|
H A D | mk_req.c | 61 krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) in krb5_mk_req() argument 79 if ((retval = krb5_cc_get_principal(context, ccache, &creds.client)) != 0) in krb5_mk_req() 84 ccache, &creds, &credsp)) != 0) in krb5_mk_req()
|
H A D | gc_frm_kdc.c | 86 krb5_ccache ccache; member 381 retval = krb5_cc_retrieve_cred(ts->ctx, ts->ccache, in retr_local_tgt() 415 retval = krb5_cc_retrieve_cred(ts->ctx, ts->ccache, RETR_FLAGS, in try_ccache() 767 krb5_ccache ccache, in do_traversal() argument 782 ts->ccache = ccache; in do_traversal() 862 krb5_get_cred_from_kdc_opt(krb5_context context, krb5_ccache ccache, in krb5_get_cred_from_kdc_opt() argument 932 retval = krb5_cc_retrieve_cred(context, ccache, RETR_FLAGS, in krb5_get_cred_from_kdc_opt() 939 retval = do_traversal(context, ccache, client, server, in krb5_get_cred_from_kdc_opt() 1187 retval = krb5_cc_retrieve_cred(context, ccache, RETR_FLAGS, in krb5_get_cred_from_kdc_opt() 1192 retval = do_traversal(context, ccache, client, server, in krb5_get_cred_from_kdc_opt() [all …]
|
H A D | sendauth.c | 47 …gs ap_req_options, krb5_data *in_data, krb5_creds *in_creds, krb5_ccache ccache, krb5_error **erro… in krb5_sendauth() argument 102 if (ccache) in krb5_sendauth() 103 use_ccache = ccache; in krb5_sendauth() 243 if (!ccache && use_ccache) in krb5_sendauth()
|
/titanic_50/usr/src/cmd/cmd-inet/common/ |
H A D | store_forw_creds.c | 48 krb5_ccache *ccache) in store_forw_creds() argument 56 *ccache = NULL; in store_forw_creds() 67 if ((retval = krb5_cc_resolve(context, ccname, ccache)) != 0) { in store_forw_creds() 73 if ((retval = krb5_cc_initialize(context, *ccache, in store_forw_creds() 80 if ((retval = krb5_cc_store_cred(context, *ccache, *creds)) != 0) { in store_forw_creds() 86 if ((retval = krb5_cc_close(context, *ccache)) != 0) in store_forw_creds()
|
/titanic_50/usr/src/cmd/ssh/sshd/ |
H A D | auth-krb5.c | 175 krb5_ccache ccache = NULL; in auth_krb5_tgt() local 185 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops, &ccache); in auth_krb5_tgt() 205 problem = krb5_cc_resolve(authctxt->krb5_ctx, ccname, &ccache); in auth_krb5_tgt() 211 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, in auth_krb5_tgt() 218 ccache, tgt); in auth_krb5_tgt() 226 problem = krb5_cc_store_cred(authctxt->krb5_ctx, ccache, *creds); in auth_krb5_tgt() 231 authctxt->krb5_fwd_ccache = ccache; in auth_krb5_tgt() 232 ccache = NULL; in auth_krb5_tgt() 251 if (ccache) in auth_krb5_tgt() 252 krb5_cc_destroy(authctxt->krb5_ctx, ccache); in auth_krb5_tgt()
|
/titanic_50/usr/src/lib/krb5/kadm5/clnt/ |
H A D | client_init.c | 91 krb5_ccache ccache, in kadm5_init_with_creds() argument 99 return _kadm5_init_any(client_name, INIT_CREDS, NULL, ccache, in kadm5_init_with_creds() 589 krb5_ccache ccache = NULL; in _kadm5_init_any() local 790 ccache = ccache_in; in _kadm5_init_any() 792 malloc(strlen(krb5_cc_get_type(handle->context, ccache)) + in _kadm5_init_any() 793 strlen(krb5_cc_get_name(handle->context, ccache)) + 2); in _kadm5_init_any() 799 krb5_cc_get_type(handle->context, ccache), in _kadm5_init_any() 800 krb5_cc_get_name(handle->context, ccache)); in _kadm5_init_any() 820 &ccache))) in _kadm5_init_any() 823 if ((code = krb5_cc_initialize (handle->context, ccache, in _kadm5_init_any() [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | kuserok.c | 91 krb5_ccache ccache = NULL; in krb5_move_ccache() local 130 retval = krb5_cc_default(kcontext, &ccache); in krb5_move_ccache() 139 retval = krb5_cc_retrieve_cred(kcontext, ccache, in krb5_move_ccache() 153 retval = krb5_cc_destroy(kcontext, ccache); in krb5_move_ccache() 165 retval = krb5_cc_resolve(kcontext, ccache_name_buf, &ccache); in krb5_move_ccache() 172 retval = krb5_cc_initialize(kcontext, ccache, client); in krb5_move_ccache() 179 retval = krb5_cc_store_cred(kcontext, ccache, &save_v5creds); in krb5_move_ccache()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | kerberos5.c | 199 krb5_ccache ccache; in kerberos5_send() local 218 if ((retval = krb5_cc_default(telnet_context, &ccache))) { in kerberos5_send() 257 if ((retval = krb5_cc_get_principal(telnet_context, ccache, in kerberos5_send() 306 ccache, &creds, &new_creds))) { in kerberos5_send() 621 krb5_ccache ccache; in kerberos5_forward() local 628 if ((retval = krb5_cc_default(telnet_context, &ccache))) { in kerberos5_forward() 636 retval = krb5_cc_get_principal(telnet_context, ccache, &client); in kerberos5_forward() 666 server, ccache, forward_flags & OPTS_FORWARDABLE_CREDS, in kerberos5_forward() 693 krb5_cc_close(telnet_context, ccache); in kerberos5_forward()
|
/titanic_50/usr/src/cmd/krb5/kadmin/kpasswd/ |
H A D | kpasswd.c | 108 krb5_ccache ccache = NULL; local 141 code = krb5_cc_default(context, &ccache); 145 code = krb5_cc_get_principal(context, ccache, &princ); 148 (void) krb5_cc_close(context, ccache);
|
/titanic_50/usr/src/cmd/krb5/slave/ |
H A D | kprop.c | 66 krb5_ccache ccache; /* Credentials cache which we'll be using */ variable 277 retval = krb5_cc_resolve(context, buf, &ccache); 284 retval = krb5_cc_initialize(context, ccache, my_principal); 302 (void) krb5_cc_destroy(context, ccache); 320 (void) krb5_cc_destroy(context, ccache); 327 (void) krb5_cc_destroy(context, ccache); 336 (void) krb5_cc_destroy(context, ccache); 347 (void) krb5_cc_destroy(context, ccache); 358 retval = krb5_cc_destroy(context, ccache);
|
/titanic_50/usr/src/cmd/ssh/ssh/ |
H A D | sshconnect1.c | 517 krb5_ccache ccache = NULL; in try_krb5_authentication() local 560 problem = krb5_cc_default(*context, &ccache); in try_krb5_authentication() 571 "host", remotehost, NULL, ccache, &ap); in try_krb5_authentication() 620 if (ccache != NULL) in try_krb5_authentication() 621 krb5_cc_close(*context, ccache); in try_krb5_authentication() 640 krb5_ccache ccache = NULL; in send_krb5_tgt() local 664 problem = krb5_cc_default(context, &ccache); in send_krb5_tgt() 668 problem = krb5_cc_get_principal(context, ccache, &creds.client); in send_krb5_tgt() 694 ccache, flags.i, remotehost, &creds, &outbuf); in send_krb5_tgt() 698 creds.client, creds.server, ccache, forwardable, &outbuf); in send_krb5_tgt() [all …]
|
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | val_cred.c | 57 if (cred->ccache) { in krb5_gss_validate_cred_1() 58 if ((code = krb5_cc_get_principal(context, cred->ccache, &princ))) { in krb5_gss_validate_cred_1()
|