| /src/lib/libtelnet/ |
| forward.c | 36 /* Decode, decrypt and store the forwarded creds in the local ccache. */ 47 krb5_ccache ccache = NULL; local 55 if ((retval = krb5_cc_resolve(context, ccname, &ccache)) != 0) 58 if ((retval = krb5_cc_initialize(context, ccache, ticket->enc_part2->client)) != 0) 61 if ((retval = krb5_cc_store_cred(context, ccache, *creds)) != 0)
|
| kerberos5.c | 182 krb5_ccache ccache; local 195 ret = krb5_cc_default(telnet_context, &ccache); 199 "Kerberos V5: could not get default ccache: %s\r\n", 239 RemoteHostName, &cksum_data, ccache, &auth); 446 krb5_ccache ccache; local 457 ret = krb5_cc_resolve(telnet_context, ccname, &ccache); 460 printf("Kerberos V5: could not get ccache: %s\r\n", 465 ret = krb5_cc_initialize(telnet_context, ccache, 469 printf("Kerberos V5: could not init ccache: %s\r\n", 475 ccache, &inbuf) 674 krb5_ccache ccache; local [all...] |
| /src/lib/libpam/modules/pam_afslog/ |
| pam_afslog.c | 56 krb5_ccache ccache; local 74 kret = krb5_cc_resolve(ctx, ccname, &ccache); 76 kret = krb5_cc_default(ctx, &ccache); 78 PAM_LOG("Error: failed to open ccache"); 81 kret = krb5_cc_get_principal(ctx, ccache, &principal); 104 krb5_afslog(ctx, ccache, 117 krb5_cc_close(ctx, ccache);
|
| /src/crypto/external/bsd/heimdal/dist/kcm/ |
| client.c | 45 kcm_ccache *ccache) 50 ret = kcm_ccache_resolve(context, name, ccache); 58 ret = kcm_access(context, client, opcode, *ccache); 61 kcm_release_ccache(context, *ccache); 73 kcm_ccache ccache; local 76 ret = kcm_ccache_resolve(context, name, &ccache); 84 ret = kcm_access(context, client, KCM_OP_DESTROY, ccache); 85 kcm_cleanup_events(context, ccache); 86 kcm_release_ccache(context, ccache); 100 kcm_ccache ccache; local [all...] |
| events.c | 86 event->ccache->name); 114 kcm_retain_ccache(context, event->ccache); 115 (*e)->ccache = event->ccache; 166 kcm_release_ccache(context, (*e)->ccache); 177 kcm_ccache ccache, 182 if (ccache->client == NULL) 186 !krb5_principal_compare(context, ccache->client, newcred->client)) 190 if (ccache->creds == NULL) 197 return krb5_compare_creds(context, whichfields, newcred, &ccache->creds->cred) 209 kcm_ccache ccache = event->ccache; local [all...] |
| cache.c | 63 kcm_ccache *ccache) 68 *ccache = NULL; 85 *ccache = p; 96 kcm_ccache *ccache) 101 *ccache = NULL; 118 *ccache = p; 234 kcm_ccache *p, ccache; local 256 ccache = *p; 258 kcm_free_ccache_data_internal(context, ccache); 259 free(ccache); [all...] |
| config.c | 158 static int parse_owners(kcm_ccache ccache) 205 ccache->uid = uid; 207 ccache->uid = 0; /* geteuid() XXX */ 210 ccache->gid = gid; 212 ccache->gid = 0; /* getegid() XXX */ 227 kcm_ccache ccache; local 235 &ccache); 239 ccache->flags |= KCM_FLAGS_OWNER_IS_SYSTEM; 240 ccache->flags |= KCM_FLAGS_USE_KEYTAB; 242 ret = parse_owners(ccache); [all...] |
| kcm_locl.h | 112 krb5_abortx(context, "kcm_free_ccache_data: ccache invalid"); \ 114 krb5_abortx(context, "kcm_free_ccache_data: ccache refcnt == 0"); \ 134 kcm_ccache ccache; member in struct:kcm_event
|
| /src/crypto/external/bsd/openssh/dist/ |
| auth-krb5.c | 170 krb5_ccache ccache = NULL; local 179 problem = krb5_cc_new_unique(authctxt->krb5_ctx, "FILE", NULL, &ccache); 183 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, 189 ccache, tgt); 193 authctxt->krb5_fwd_ccache = ccache; 194 ccache = NULL; 222 if (ccache) 223 krb5_cc_destroy(authctxt->krb5_ctx, ccache); 235 krb5_ccache ccache = NULL; local 250 krb5_mcc_ops.prefix, NULL, &ccache); [all...] |
| gss-serv-krb5.c | 117 krb5_ccache ccache; local 133 NULL, &ccache)) != 0) { 145 krb5_cc_destroy(krb_context, ccache); 149 if ((problem = krb5_cc_initialize(krb_context, ccache, princ))) { 154 krb5_cc_destroy(krb_context, ccache); 161 client->creds, ccache))) { 163 krb5_cc_destroy(krb_context, ccache); 167 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); 178 krb5_cc_close(krb_context, ccache);
|
| /src/crypto/external/bsd/heimdal/dist/kuser/ |
| kdestroy.c | 77 krb5_ccache ccache; local 113 while (krb5_cccol_cursor_next (context, cursor, &ccache) == 0 && ccache != NULL) { 115 ret = krb5_cc_destroy (context, ccache); 125 ret = krb5_cc_default(context, &ccache); 131 &ccache); 147 ret = krb5_cc_remove_cred(context, ccache, 0, &mcred); 152 krb5_cc_close(context, ccache); 158 ret = krb5_cc_destroy (context, ccache);
|
| kdeltkt.c | 77 krb5_ccache ccache; local 98 ret = krb5_cc_resolve(context, ccachestr, &ccache); 100 ret = krb5_cc_default(context, &ccache); 104 ret = krb5_cc_get_principal(context, ccache, &me); 137 ret = krb5_cc_retrieve_cred(context, ccache, retflags, 148 ret = krb5_cc_remove_cred(context, ccache, flags, &out_creds); 167 krb5_cc_close(context, ccache);
|
| kvno.c | 106 krb5_ccache ccache; local 127 ret = krb5_cc_resolve(context, ccache_name, &ccache); 129 ret = krb5_cc_default(context, &ccache); 140 ret = krb5_cc_get_principal(context, ccache, &me); 176 ret = krb5_get_credentials(context, 0, ccache, &in_creds, &out_creds); 273 krb5_cc_close(context, ccache);
|
| kimpersonate.c | 158 krb5_ccache ccache; local 209 ret = krb5_cc_resolve(context, ccache_str, &ccache); 213 ret = krb5_cc_default(context, &ccache); 222 * Force fcache to read the ccache header, otherwise the store 225 ret = krb5_cc_get_principal(context, ccache, &def_princ); 228 "Given ccache appears not to exist; initializing it"); 229 ret = krb5_cc_initialize(context, ccache, cred.client); 235 ret = krb5_cc_initialize(context, ccache, cred.client); 249 ret = krb5_cc_store_cred(context, ccache, &cred); 258 ret = krb5_cc_store_cred(context, ccache, &cred) [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/ |
| acquire_cred.c | 86 * This function produces a cred with a MEMORY ccache containing a TGT 101 krb5_ccache ccache = NULL; local 154 kret = krb5_cc_new_unique(context, krb5_cc_type_memory, NULL, &ccache); 158 kret = krb5_cc_initialize(context, ccache, cred.client); 162 kret = krb5_cc_store_cred(context, ccache, &cred); 168 ret = __gsskrb5_ccache_lifetime(minor_status, context, ccache, 173 handle->ccache = ccache; 174 ccache = NULL; 179 if (ccache != NULL 204 krb5_ccache ccache = NULL; \/* we may store into this ccache *\/ local [all...] |
| accept_sec_context.c | 161 krb5_ccache ccache = NULL; local 175 NULL, &ccache); 181 kret = krb5_cc_initialize(context, ccache, ctx->source); 193 ccache, 209 ccache, 219 krb5_cc_close(context, ccache); 220 ccache = NULL; 224 if (ccache) { 227 krb5_cc_close(context, ccache); 229 krb5_cc_destroy(context, ccache); [all...] |
| gsskrb5_locl.h | 84 krb5_ccache ccache; member in struct:gsskrb5_ctx 103 struct krb5_ccache_data *ccache; member in struct:__anon816
|
| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| test_ap-req.c | 73 krb5_ccache ccache, 88 ccache, 170 const char *principal, *keytab, *ccache; local 196 ccache = argv[2]; 202 ret = krb5_cc_resolve(context, ccache, &id);
|
| /src/external/mpl/dhcp/dist/server/ |
| ldap_krb_helper.c | 72 check_credentials(krb5_context context, krb5_ccache ccache, krb5_principal service) 94 krberr = krb5_cc_retrieve_cred(context, ccache, 0, &mcreds, &creds); 136 krb5_ccache ccache = NULL; local 160 log_info("Using ccache %s\n" , ccname); 169 krberr = krb5_cc_resolve(context, ccname, &ccache); 170 CHECK_KRB5(context, krberr, "Couldnt resolve ccache '%s'", ccname); 175 result = check_credentials(context, ccache, kprincpw); 201 krberr = krb5_cc_initialize(context, ccache, kprincpw); 202 CHECK_KRB5(context, krberr, "Failed to init ccache\n"); 204 krberr = krb5_cc_store_cred(context, ccache, &my_creds) [all...] |
| /src/lib/libpam/modules/pam_ksu/ |
| pam_ksu.c | 214 krb5_ccache ccache; local 237 rv = krb5_cc_resolve(context, ccname, &ccache); 240 rv = krb5_cc_get_principal(context, ccache, &default_principal); 241 krb5_cc_close(context, ccache);
|
| /src/usr.bin/login/ |
| k5login.c | 123 k5_verify_creds(krb5_context c, krb5_ccache ccache) 156 0, ccache, &packet); 238 krb5_ccache ccache; local 244 kerror = krb5_cc_default(kcontext, &ccache); 246 krb5_warn(kcontext, kerror, "while getting default ccache"); 270 kerror = krb5_cc_retrieve_cred(kcontext, ccache, 0, 286 krb5_cc_destroy(kcontext, ccache); 294 krb5_ccache ccache; local 299 kerror = krb5_cc_default(kcontext, &ccache); 301 krb5_warn(kcontext, kerror, "while getting default ccache"); 335 krb5_ccache ccache = NULL; local 447 krb5_ccache ccache = NULL; local [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/gssapi/ |
| test_acquire_cred.c | 184 static char *ccache; variable 194 {"ccache", 0, arg_string, &ccache, "name", NULL }, 259 if (ccache) { 260 maj_stat = gss_krb5_ccache_name(&min_stat, ccache, NULL);
|
| /src/external/bsd/openldap/dist/contrib/slapd-modules/kinit/ |
| kinit.c | 34 krb5_ccache ccache; member in struct:kinit_data 64 rc = krb5_cc_get_principal(kid->ctx, kid->ccache, &princ); 71 "Principal in ccache does not match requested principal\n"); 77 rc = krb5_cc_start_seq_get(kid->ctx, kid->ccache, &cursor); 84 while (!(rc = krb5_cc_next_cred(kid->ctx, kid->ccache, &cursor, &creds))) { 129 krb5_cc_end_seq_get(kid->ctx, kid->ccache, &cursor); 152 rc = krb5_get_renewed_creds(kid->ctx, &creds, kid->princ, kid->ccache, NULL); 160 krb5_cc_initialize(kid->ctx, kid->ccache, creds.client); 161 krb5_cc_store_cred(kid->ctx, kid->ccache, &creds); 212 rc = krb5_cc_default(kid->ctx, &kid->ccache ); [all...] |
| /src/usr.bin/su/ |
| su.c | 452 krb5_ccache ccache, ccache2; local 472 ret = krb5_cc_new_unique(context, krb5_mcc_ops.prefix, NULL, &ccache); 475 ret = krb5_verify_user_lrealm(context, princ, ccache, NULL, TRUE, 478 krb5_cc_destroy(context, ccache); 494 krb5_cc_destroy(context, ccache); 497 ret = krb5_cc_copy_cache(context, ccache, ccache2); 499 krb5_cc_destroy(context, ccache); 510 krb5_cc_destroy(context, ccache); 518 krb5_cc_destroy(context, ccache);
|
| /src/crypto/external/bsd/heimdal/dist/kdc/ |
| hprop.c | 278 HDB *db, krb5_ccache ccache, 336 ccache, 390 krb5_ccache ccache = NULL; local 433 get_creds(context, &ccache); 465 db, ccache, optidx, argc, argv); 467 if(ccache != NULL) 468 krb5_cc_destroy(context, ccache);
|