Home
last modified time | relevance | path

Searched refs:ccache (Results 1 – 25 of 117) sorted by relevance

12345

/freebsd/crypto/heimdal/kcm/
H A Dacquire.c42 kcm_ccache ccache, in kcm_ccache_acquire() argument
54 KCM_ASSERT_VALID(ccache); in kcm_ccache_acquire()
57 if (ccache->flags & KCM_FLAGS_USE_CACHED_KEY) { in kcm_ccache_acquire()
58 if (ccache->key.keyblock.keyvalue.length == 0) in kcm_ccache_acquire()
61 } else if (ccache->flags & KCM_FLAGS_USE_KEYTAB) { in kcm_ccache_acquire()
62 if (ccache->key.keytab == NULL) in kcm_ccache_acquire()
67 ccache->name); in kcm_ccache_acquire()
71 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_acquire()
74 kcm_internal_ccache(context, ccache, &ccdata); in kcm_ccache_acquire()
77 if (ccache->server != NULL) { in kcm_ccache_acquire()
[all …]
H A Dacl.c41 kcm_ccache ccache) in kcm_access() argument
48 KCM_ASSERT_VALID(ccache); in kcm_access()
86 if (ccache->flags & KCM_FLAGS_OWNER_IS_SYSTEM) { in kcm_access()
114 if (kcm_is_same_session(client, ccache->uid, ccache->session)) { in kcm_access()
121 if (client->uid == ccache->uid) { in kcm_access()
128 if (client->gid == ccache->gid) { in kcm_access()
135 ret = (ccache->mode & mask) ? 0 : KRB5_FCC_PERM; in kcm_access()
140 client->pid, kcm_op2string(opcode), ccache->name); in kcm_access()
149 kcm_ccache ccache, in kcm_chmod() argument
152 KCM_ASSERT_VALID(ccache); in kcm_chmod()
[all …]
H A Dclient.c43 kcm_ccache *ccache) in kcm_ccache_resolve_client() argument
47 ret = kcm_ccache_resolve(context, name, ccache); in kcm_ccache_resolve_client()
54 ret = kcm_access(context, client, opcode, *ccache); in kcm_ccache_resolve_client()
57 kcm_release_ccache(context, *ccache); in kcm_ccache_resolve_client()
69 kcm_ccache ccache; in kcm_ccache_destroy_client() local
71 ret = kcm_ccache_resolve(context, name, &ccache); in kcm_ccache_destroy_client()
78 ret = kcm_access(context, client, KCM_OP_DESTROY, ccache); in kcm_ccache_destroy_client()
79 kcm_cleanup_events(context, ccache); in kcm_ccache_destroy_client()
80 kcm_release_ccache(context, ccache); in kcm_ccache_destroy_client()
94 kcm_ccache ccache; in kcm_ccache_new_client() local
[all …]
H A Dcache.c58 kcm_ccache *ccache) in kcm_ccache_resolve() argument
63 *ccache = NULL; in kcm_ccache_resolve()
80 *ccache = p; in kcm_ccache_resolve()
91 kcm_ccache *ccache) in kcm_ccache_resolve_by_uuid() argument
96 *ccache = NULL; in kcm_ccache_resolve_by_uuid()
113 *ccache = p; in kcm_ccache_resolve_by_uuid()
229 kcm_ccache *p, ccache; in kcm_ccache_destroy() local
251 ccache = *p; in kcm_ccache_destroy()
253 kcm_free_ccache_data_internal(context, ccache); in kcm_ccache_destroy()
254 free(ccache); in kcm_ccache_destroy()
[all …]
H A Drenew.c39 kcm_ccache ccache, in kcm_ccache_refresh() argument
50 KCM_ASSERT_VALID(ccache); in kcm_ccache_refresh()
52 if (ccache->client == NULL) { in kcm_ccache_refresh()
58 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_refresh()
61 kcm_internal_ccache(context, ccache, &ccdata); in kcm_ccache_refresh()
64 in.client = ccache->client; in kcm_ccache_refresh()
66 if (ccache->server != NULL) { in kcm_ccache_refresh()
67 ret = krb5_copy_principal(context, ccache->server, &in.server); in kcm_ccache_refresh()
84 if (ccache->tkt_life) in kcm_ccache_refresh()
85 in.times.endtime = time(NULL) + ccache->tkt_life; in kcm_ccache_refresh()
[all …]
H A Devents.c84 event->ccache->name); in log_event()
112 kcm_retain_ccache(context, event->ccache); in kcm_enqueue_event_internal()
113 (*e)->ccache = event->ccache; in kcm_enqueue_event_internal()
164 kcm_release_ccache(context, (*e)->ccache); in kcm_remove_event_internal()
175 kcm_ccache ccache, in is_primary_credential_p() argument
180 if (ccache->client == NULL) in is_primary_credential_p()
184 !krb5_principal_compare(context, ccache->client, newcred->client)) in is_primary_credential_p()
188 if (ccache->creds == NULL) in is_primary_credential_p()
195 return krb5_compare_creds(context, whichfields, newcred, &ccache->creds->cred); in is_primary_credential_p()
207 kcm_ccache ccache = event->ccache; in kcm_ccache_make_default_event() local
[all …]
H A Dconfig.c163 static int parse_owners(kcm_ccache ccache) in parse_owners() argument
205 ccache->uid = uid; in parse_owners()
207 ccache->uid = 0; /* geteuid() XXX */ in parse_owners()
210 ccache->gid = gid; in parse_owners()
212 ccache->gid = 0; /* getegid() XXX */ in parse_owners()
227 kcm_ccache ccache; in ccache_init_system() local
235 &ccache); in ccache_init_system()
239 ccache->flags |= KCM_FLAGS_OWNER_IS_SYSTEM; in ccache_init_system()
240 ccache->flags |= KCM_FLAGS_USE_KEYTAB; in ccache_init_system()
242 ret = parse_owners(ccache); in ccache_init_system()
[all …]
H A Dprotocol.c82 kcm_ccache ccache; in kcm_op_get_name() local
91 name, &ccache); in kcm_op_get_name()
97 ret = krb5_store_stringz(response, ccache->name); in kcm_op_get_name()
99 kcm_release_ccache(context, ccache); in kcm_op_get_name()
105 kcm_release_ccache(context, ccache); in kcm_op_get_name()
153 kcm_ccache ccache; in kcm_op_initialize() local
173 ret = kcm_ccache_new_client(context, client, name, &ccache); in kcm_op_initialize()
180 ccache->client = principal; in kcm_op_initialize()
195 event.ccache = ccache; in kcm_op_initialize()
200 kcm_release_ccache(context, ccache); in kcm_op_initialize()
[all …]
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dklist.c70 krb5_ccache ccache, in print_tickets() argument
86 krb5_cc_get_type(context, ccache), in print_tickets()
87 krb5_cc_get_name(context, ccache)); in print_tickets()
91 ret = krb5_cc_start_seq_get (context, ccache, &cursor); in print_tickets()
100 ccache, in print_tickets()
111 ret = krb5_cc_end_seq_get (context, ccache, &cursor); in print_tickets()
125 krb5_ccache ccache; in klist5() local
136 ret = krb5_cc_resolve(context, k5ccname, &ccache); in klist5()
138 ret = krb5_cc_default (context, &ccache); in klist5()
144 ret = krb5_cc_get_principal (context, ccache, &principal); in klist5()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dacache.c56 cc_ccache_t ccache; member
444 error = (*a->ccache->func->get_name)(a->ccache, &name); in get_cc_name()
480 &a->ccache); in acc_get_name()
536 error = (*a->context->func->open_ccache)(a->context, res, &a->ccache); in acc_resolve()
546 error = (*a->ccache->func->get_kdc_time_offset)(a->ccache, in acc_resolve()
553 a->ccache = NULL; in acc_resolve()
575 a->ccache = NULL; in acc_gen_new()
599 &a->ccache); in acc_initialize()
607 error = (*a->ccache->func->new_credentials_iterator)(a->ccache, &iter); in acc_initialize()
617 (*a->ccache->func->remove_credentials)(a->ccache, ccred); in acc_initialize()
[all …]
H A Dverify_user.c39 krb5_ccache ccache, in verify_common() argument
67 if(ccache == NULL) in verify_common()
70 id = ccache; in verify_common()
76 if(ccache == NULL) in verify_common()
119 krb5_verify_opt_set_ccache(krb5_verify_opt *opt, krb5_ccache ccache) in krb5_verify_opt_set_ccache() argument
121 opt->ccache = ccache; in krb5_verify_opt_set_ccache()
178 return verify_common (context, principal, OPT(ccache, NULL), in verify_user_opt_int()
221 krb5_ccache ccache, in krb5_verify_user() argument
230 krb5_verify_opt_set_ccache(&opt, ccache); in krb5_verify_user()
245 krb5_ccache ccache, in krb5_verify_user_lrealm() argument
[all …]
H A Dverify_init.c75 krb5_ccache *ccache, in krb5_verify_init_creds() argument
115 if (ccache && *ccache) in krb5_verify_init_creds()
116 local_ccache = *ccache; in krb5_verify_init_creds()
190 (ccache == NULL in krb5_verify_init_creds()
191 || (ret != 0 && *ccache == NULL))) in krb5_verify_init_creds()
194 if (ret == 0 && ccache != NULL && *ccache == NULL) in krb5_verify_init_creds()
195 *ccache = local_ccache; in krb5_verify_init_creds()
218 krb5_ccache ccache, in krb5_get_validated_creds() argument
H A Dsendauth.c73 krb5_ccache ccache, in krb5_sendauth() argument
123 if (ccache == NULL) { in krb5_sendauth()
124 ret = krb5_cc_default (context, &ccache); in krb5_sendauth()
131 ret = krb5_cc_get_principal (context, ccache, &this_client); in krb5_sendauth()
134 krb5_cc_close(context, ccache); in krb5_sendauth()
147 ret = krb5_get_credentials (context, 0, ccache, in_creds, &creds); in krb5_sendauth()
150 krb5_cc_close(context, ccache); in krb5_sendauth()
157 krb5_cc_close(context, ccache); in krb5_sendauth()
H A Dget_cred.c142 krb5_ccache ccache, in init_tgs_req() argument
736 krb5_ccache ccache, in get_cred_kdc_capath_worker() argument
771 ret = find_cred(context, ccache, tmp_creds.server, in get_cred_kdc_capath_worker()
784 ret = get_cred_kdc_address(context, ccache, flags, NULL, in get_cred_kdc_capath_worker()
808 ret = get_cred_kdc_capath(context, flags, ccache, &tmp_creds, in get_cred_kdc_capath_worker()
857 ret = get_cred_kdc_address (context, ccache, flags, NULL, in get_cred_kdc_capath_worker()
887 krb5_ccache ccache, in get_cred_kdc_capath() argument
901 ret = get_cred_kdc_capath_worker(context, flags, ccache, in_creds, try_realm, in get_cred_kdc_capath()
910 ret = get_cred_kdc_capath_worker(context, flags, ccache, in_creds, in get_cred_kdc_capath()
922 krb5_ccache ccache, in get_cred_kdc_referral() argument
[all …]
H A Dmk_req.c42 krb5_ccache ccache, in krb5_mk_req_exact() argument
50 ret = krb5_cc_get_principal(context, ccache, &this_cred.client); in krb5_mk_req_exact()
65 ret = krb5_get_credentials (context, 0, ccache, &this_cred, &cred); in krb5_mk_req_exact()
87 krb5_ccache ccache, in krb5_mk_req() argument
111 server, in_data, ccache, outbuf); in krb5_mk_req()
/freebsd/crypto/openssh/
H A Dgss-serv-krb5.c119 krb5_ccache ccache; local
137 NULL, &ccache)) != 0) {
141 if ((problem = krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))) {
149 if ((problem = ssh_krb5_cc_gen(krb_context, &ccache))) {
165 if ((problem = krb5_cc_initialize(krb_context, ccache, princ))) {
170 krb5_cc_destroy(krb_context, ccache);
177 client->creds, ccache))) {
179 krb5_cc_destroy(krb_context, ccache);
183 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
194 krb5_cc_close(krb_context, ccache);
H A Dauth-krb5.c79 krb5_ccache ccache = NULL; in auth_krb5_password() local
102 krb5_mcc_ops.prefix, NULL, &ccache); in auth_krb5_password()
104 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache); in auth_krb5_password()
109 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, in auth_krb5_password()
117 ccache, password, 1, NULL); in auth_krb5_password()
134 problem = krb5_cc_copy_cache(authctxt->krb5_ctx, ccache, in auth_krb5_password()
136 krb5_cc_destroy(authctxt->krb5_ctx, ccache); in auth_krb5_password()
137 ccache = NULL; in auth_krb5_password()
200 if (ccache) in auth_krb5_password()
201 krb5_cc_destroy(authctxt->krb5_ctx, ccache); in auth_krb5_password()
[all …]
/freebsd/crypto/heimdal/kuser/
H A Dkdestroy.c75 krb5_ccache ccache; in main() local
111 while (krb5_cccol_cursor_next (context, cursor, &ccache) == 0 && ccache != NULL) { in main()
113 ret = krb5_cc_destroy (context, ccache); in main()
123 ret = krb5_cc_default(context, &ccache); in main()
129 &ccache); in main()
145 ret = krb5_cc_remove_cred(context, ccache, 0, &mcred); in main()
150 krb5_cc_close(context, ccache); in main()
156 ret = krb5_cc_destroy (context, ccache); in main()
H A Dkinit.c350 krb5_ccache ccache, in get_new_tickets() argument
601 ret = krb5_cc_new_unique(context, krb5_cc_get_type(context, ccache), in get_new_tickets()
616 ret = krb5_cc_move(context, tempccache, ccache); in get_new_tickets()
621 krb5_cc_switch(context, ccache); in get_new_tickets()
625 store_ntlmkey(context, ccache, ntlm_domain, &ntlmkey); in get_new_tickets()
640 krb5_cc_set_config(context, ccache, NULL, "realm-config", &data); in get_new_tickets()
689 krb5_ccache ccache; member
704 ctx->ccache, server_str, ctx->ticket_life); in renew_func()
712 ctx->ccache, ctx->ticket_life, 0); in renew_func()
716 krb5_afslog(ctx->context, ctx->ccache, NULL, NULL); in renew_func()
[all …]
H A Dklist.c228 krb5_ccache ccache, in print_tickets() argument
248 krb5_cc_get_type(context, ccache), in print_tickets()
249 krb5_cc_get_name(context, ccache)); in print_tickets()
252 ret = krb5_cc_get_friendly_name(context, ccache, &name); in print_tickets()
262 krb5_cc_get_version(context, ccache)); in print_tickets()
264 krb5_cc_set_flags(context, ccache, KRB5_TC_NOTICKET); in print_tickets()
267 ret = krb5_cc_get_kdc_offset(context, ccache, &sec); in print_tickets()
289 ret = krb5_cc_start_seq_get (context, ccache, &cursor); in print_tickets()
303 ccache, in print_tickets()
317 ret = krb5_cc_end_seq_get (context, ccache, &cursor); in print_tickets()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Dacquire_cred.c120 krb5_ccache ccache; in acquire_initiator_cred() local
125 ccache = NULL; in acquire_initiator_cred()
145 &ccache); in acquire_initiator_cred()
152 if (ccache == NULL) { in acquire_initiator_cred()
153 kret = krb5_cc_default(context, &ccache); in acquire_initiator_cred()
157 kret = krb5_cc_get_principal(context, ccache, &def_princ); in acquire_initiator_cred()
160 krb5_cc_close(context, ccache); in acquire_initiator_cred()
172 krb5_cc_close(context, ccache); in acquire_initiator_cred()
173 ccache = NULL; in acquire_initiator_cred()
211 NULL, &ccache); in acquire_initiator_cred()
[all …]
H A Dadd_cred.c110 handle->ccache = NULL; in _gsskrb5_add_cred()
145 if (cred->ccache) { in _gsskrb5_add_cred()
151 type = krb5_cc_get_type(context, cred->ccache); in _gsskrb5_add_cred()
159 NULL, &handle->ccache); in _gsskrb5_add_cred()
165 ret = krb5_cc_copy_cache(context, cred->ccache, in _gsskrb5_add_cred()
166 handle->ccache); in _gsskrb5_add_cred()
173 name = krb5_cc_get_name(context, cred->ccache); in _gsskrb5_add_cred()
186 &handle->ccache); in _gsskrb5_add_cred()
230 if (handle->ccache) in _gsskrb5_add_cred()
231 krb5_cc_destroy(context, handle->ccache); in _gsskrb5_add_cred()
H A Dinit_sec_context.c124 ctx->ccache = NULL; in _gsskrb5_create_ctx()
205 krb5_ccache ccache, in gsskrb5_get_creds() argument
248 ccache, in gsskrb5_get_creds()
287 krb5_cc_close(context, ctx->ccache); in gsskrb5_initiator_ready()
288 ctx->ccache = NULL; in gsskrb5_initiator_ready()
314 krb5_ccache ccache, in do_delegation() argument
328 kret = krb5_cc_get_principal(context, ccache, &creds.client); in do_delegation()
353 ccache, in do_delegation()
408 kret = krb5_cc_default (context, &ctx->ccache); in init_auth()
416 ctx->ccache = cred->ccache; in init_auth()
[all …]
/freebsd/crypto/heimdal/lib/kadm5/
H A Dinit_c.c322 krb5_ccache ccache, in _kadm5_c_get_cred_cache() argument
341 if(ccache != NULL) { in _kadm5_c_get_cred_cache()
342 id = ccache; in _kadm5_c_get_cred_cache()
389 if(ccache != NULL) in _kadm5_c_get_cred_cache()
394 if(id && (id != ccache)) in _kadm5_c_get_cred_cache()
459 ctx->ccache, &cc); in kadm_connect()
483 if(ctx->ccache == NULL) in kadm_connect()
509 if(ctx->ccache == NULL) in kadm_connect()
540 if(ctx->ccache == NULL) in kadm_connect()
562 krb5_ccache ccache, in kadm5_c_init_with_context() argument
[all …]
/freebsd/lib/libpam/modules/pam_krb5/
H A Dpam_krb5.c121 krb5_ccache ccache; in pam_sm_authenticate() local
296 krbret = krb5_cc_new_unique(krbctx, krb5_cc_type_memory, NULL, &ccache); in pam_sm_authenticate()
304 krbret = krb5_cc_initialize(krbctx, ccache, princ); in pam_sm_authenticate()
312 krbret = krb5_cc_store_cred(krbctx, ccache, &creds); in pam_sm_authenticate()
317 krb5_cc_destroy(krbctx, ccache); in pam_sm_authenticate()
325 krbret = verify_krb_v5_tgt(krbctx, ccache, srvdup, in pam_sm_authenticate()
332 krb5_cc_destroy(krbctx, ccache); in pam_sm_authenticate()
341 krb5_cc_destroy(krbctx, ccache); in pam_sm_authenticate()
350 ccache), krb5_cc_get_name(krbctx, ccache)); in pam_sm_authenticate()
358 krb5_cc_destroy(krbctx, ccache); in pam_sm_authenticate()
[all …]

12345