Home
last modified time | relevance | path

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

123456789

/netbsd-src/crypto/external/bsd/heimdal/dist/kcm/
H A Dacquire.c44 kcm_ccache ccache, in kcm_ccache_acquire() argument
58 KCM_ASSERT_VALID(ccache); in kcm_ccache_acquire()
61 if (ccache->flags & KCM_FLAGS_USE_CACHED_KEY) { in kcm_ccache_acquire()
62 if (ccache->key.keyblock.keyvalue.length == 0) in kcm_ccache_acquire()
65 } else if (ccache->flags & KCM_FLAGS_USE_KEYTAB) { in kcm_ccache_acquire()
66 if (ccache->key.keytab == NULL) in kcm_ccache_acquire()
71 ccache->name); in kcm_ccache_acquire()
75 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_acquire()
78 kcm_internal_ccache(context, ccache, &ccdata); in kcm_ccache_acquire()
81 if (ccache->server != NULL) { in kcm_ccache_acquire()
[all …]
H A Dacl.c43 kcm_ccache ccache) in kcm_access() argument
50 KCM_ASSERT_VALID(ccache); in kcm_access()
88 if (ccache->flags & KCM_FLAGS_OWNER_IS_SYSTEM) { in kcm_access()
116 if (kcm_is_same_session(client, ccache->uid, ccache->session)) { in kcm_access()
123 if (client->uid == ccache->uid) { in kcm_access()
130 if (client->gid == ccache->gid) { in kcm_access()
137 ret = (ccache->mode & mask) ? 0 : KRB5_FCC_PERM; in kcm_access()
142 client->pid, kcm_op2string(opcode), ccache->name); in kcm_access()
151 kcm_ccache ccache, in kcm_chmod() argument
154 KCM_ASSERT_VALID(ccache); in kcm_chmod()
[all …]
H A Dcache.c63 kcm_ccache *ccache) in kcm_ccache_resolve() argument
68 *ccache = NULL; in kcm_ccache_resolve()
85 *ccache = p; in kcm_ccache_resolve()
96 kcm_ccache *ccache) in kcm_ccache_resolve_by_uuid() argument
101 *ccache = NULL; in kcm_ccache_resolve_by_uuid()
118 *ccache = p; in kcm_ccache_resolve_by_uuid()
234 kcm_ccache *p, ccache; in kcm_ccache_destroy() local
256 ccache = *p; in kcm_ccache_destroy()
258 kcm_free_ccache_data_internal(context, ccache); in kcm_ccache_destroy()
259 free(ccache); in kcm_ccache_destroy()
[all …]
H A Dclient.c45 kcm_ccache *ccache) in kcm_ccache_resolve_client() argument
50 ret = kcm_ccache_resolve(context, name, ccache); in kcm_ccache_resolve_client()
58 ret = kcm_access(context, client, opcode, *ccache); in kcm_ccache_resolve_client()
61 kcm_release_ccache(context, *ccache); in kcm_ccache_resolve_client()
73 kcm_ccache ccache; in kcm_ccache_destroy_client() local
76 ret = kcm_ccache_resolve(context, name, &ccache); in kcm_ccache_destroy_client()
84 ret = kcm_access(context, client, KCM_OP_DESTROY, ccache); in kcm_ccache_destroy_client()
85 kcm_cleanup_events(context, ccache); in kcm_ccache_destroy_client()
86 kcm_release_ccache(context, ccache); in kcm_ccache_destroy_client()
100 kcm_ccache ccache; in kcm_ccache_new_client() local
[all …]
H A Devents.c86 event->ccache->name); in log_event()
114 kcm_retain_ccache(context, event->ccache); in kcm_enqueue_event_internal()
115 (*e)->ccache = event->ccache; in kcm_enqueue_event_internal()
166 kcm_release_ccache(context, (*e)->ccache); in kcm_remove_event_internal()
177 kcm_ccache ccache, in is_primary_credential_p() argument
182 if (ccache->client == NULL) in is_primary_credential_p()
186 !krb5_principal_compare(context, ccache->client, newcred->client)) in is_primary_credential_p()
190 if (ccache->creds == NULL) in is_primary_credential_p()
197 return krb5_compare_creds(context, whichfields, newcred, &ccache->creds->cred); in is_primary_credential_p()
209 kcm_ccache ccache = event->ccache; in kcm_ccache_make_default_event() local
[all …]
H A Dconfig.c158 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 Drenew.c41 kcm_ccache ccache, in kcm_ccache_refresh() argument
53 KCM_ASSERT_VALID(ccache); in kcm_ccache_refresh()
55 if (ccache->client == NULL) { in kcm_ccache_refresh()
61 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_refresh()
64 kcm_internal_ccache(context, ccache, &ccdata); in kcm_ccache_refresh()
67 in.client = ccache->client; in kcm_ccache_refresh()
69 if (ccache->server != NULL) { in kcm_ccache_refresh()
70 ret = krb5_copy_principal(context, ccache->server, &in.server); in kcm_ccache_refresh()
91 if (ccache->tkt_life) in kcm_ccache_refresh()
92 in.times.endtime = time(NULL) + ccache->tkt_life; in kcm_ccache_refresh()
[all …]
H A Dprotocol.c84 kcm_ccache ccache; in kcm_op_get_name() local
93 name, &ccache); in kcm_op_get_name()
99 ret = krb5_store_stringz(response, ccache->name); in kcm_op_get_name()
101 kcm_release_ccache(context, ccache); in kcm_op_get_name()
107 kcm_release_ccache(context, ccache); in kcm_op_get_name()
155 kcm_ccache ccache; in kcm_op_initialize() local
175 ret = kcm_ccache_new_client(context, client, name, &ccache); in kcm_op_initialize()
182 ccache->client = principal; in kcm_op_initialize()
197 event.ccache = ccache; in kcm_op_initialize()
202 kcm_release_ccache(context, ccache); in kcm_op_initialize()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/
H A Dacquire_cred.c101 krb5_ccache ccache = NULL; in acquire_cred_with_password() local
154 kret = krb5_cc_new_unique(context, krb5_cc_type_memory, NULL, &ccache); in acquire_cred_with_password()
158 kret = krb5_cc_initialize(context, ccache, cred.client); in acquire_cred_with_password()
162 kret = krb5_cc_store_cred(context, ccache, &cred); in acquire_cred_with_password()
168 ret = __gsskrb5_ccache_lifetime(minor_status, context, ccache, in acquire_cred_with_password()
173 handle->ccache = ccache; in acquire_cred_with_password()
174 ccache = NULL; in acquire_cred_with_password()
179 if (ccache != NULL) in acquire_cred_with_password()
180 krb5_cc_destroy(context, ccache); in acquire_cred_with_password()
204 krb5_ccache ccache = NULL; /* we may store into this ccache */ in acquire_initiator_cred() local
[all …]
H A Dadd_cred.c142 handle->ccache = NULL; in _gsskrb5_add_cred()
170 if (cred->ccache) { in _gsskrb5_add_cred()
174 type = krb5_cc_get_type(context, cred->ccache); in _gsskrb5_add_cred()
182 NULL, &handle->ccache); in _gsskrb5_add_cred()
186 *minor_status = krb5_cc_copy_cache(context, cred->ccache, in _gsskrb5_add_cred()
187 handle->ccache); in _gsskrb5_add_cred()
192 name = krb5_cc_get_name(context, cred->ccache); in _gsskrb5_add_cred()
205 &handle->ccache); in _gsskrb5_add_cred()
244 if (handle->ccache) in _gsskrb5_add_cred()
245 krb5_cc_destroy(context, handle->ccache); in _gsskrb5_add_cred()
H A Dinit_sec_context.c126 ctx->ccache = NULL; in _gsskrb5_create_ctx()
209 krb5_ccache ccache, in gsskrb5_get_creds() argument
251 ccache, in gsskrb5_get_creds()
290 krb5_cc_close(context, ctx->ccache); in gsskrb5_initiator_ready()
291 ctx->ccache = NULL; in gsskrb5_initiator_ready()
317 krb5_ccache ccache, in do_delegation() argument
331 kret = krb5_cc_get_principal(context, ccache, &creds.client); in do_delegation()
355 ccache, in do_delegation()
407 kret = krb5_cc_default (context, &ctx->ccache); in init_auth()
415 ctx->ccache = cred->ccache; in init_auth()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dacache.c58 cc_ccache_t ccache; member
445 error = (*a->ccache->func->get_name)(a->ccache, &name); in get_cc_name()
481 &a->ccache); in acc_get_name()
537 error = (*a->context->func->open_ccache)(a->context, res, &a->ccache); in acc_resolve()
547 error = (*a->ccache->func->get_kdc_time_offset)(a->ccache, in acc_resolve()
554 a->ccache = NULL; in acc_resolve()
576 a->ccache = NULL; in acc_gen_new()
600 &a->ccache); in acc_initialize()
608 error = (*a->ccache->func->new_credentials_iterator)(a->ccache, &iter); in acc_initialize()
618 (*a->ccache->func->remove_credentials)(a->ccache, ccred); in acc_initialize()
[all …]
H A Dverify_user.c41 krb5_ccache ccache, in verify_common() argument
69 if(ccache == NULL) in verify_common()
72 id = ccache; in verify_common()
78 if(ccache == NULL) in verify_common()
118 krb5_verify_opt_set_ccache(krb5_verify_opt *opt, krb5_ccache ccache) in krb5_verify_opt_set_ccache() argument
120 opt->ccache = ccache; in krb5_verify_opt_set_ccache()
177 return verify_common (context, principal, OPT(ccache, NULL), in verify_user_opt_int()
220 krb5_ccache ccache, in krb5_verify_user() argument
229 krb5_verify_opt_set_ccache(&opt, ccache); in krb5_verify_user()
244 krb5_ccache ccache, in krb5_verify_user_lrealm() argument
[all …]
H A Dverify_init.c80 krb5_ccache *ccache, in krb5_verify_init_creds() argument
120 if (ccache && *ccache) in krb5_verify_init_creds()
121 local_ccache = *ccache; in krb5_verify_init_creds()
195 (ccache == NULL in krb5_verify_init_creds()
196 || (ret != 0 && *ccache == NULL))) in krb5_verify_init_creds()
199 if (ret == 0 && ccache != NULL && *ccache == NULL) in krb5_verify_init_creds()
200 *ccache = local_ccache; in krb5_verify_init_creds()
223 krb5_ccache ccache, in krb5_get_validated_creds() argument
H A Dsendauth.c98 krb5_ccache ccache, in krb5_sendauth() argument
148 if (ccache == NULL) { in krb5_sendauth()
149 ret = krb5_cc_default (context, &ccache); in krb5_sendauth()
156 ret = krb5_cc_get_principal (context, ccache, &this_client); in krb5_sendauth()
159 krb5_cc_close(context, ccache); in krb5_sendauth()
172 ret = krb5_get_credentials (context, 0, ccache, in_creds, &creds); in krb5_sendauth()
175 krb5_cc_close(context, ccache); in krb5_sendauth()
182 krb5_cc_close(context, ccache); in krb5_sendauth()
/netbsd-src/usr.bin/login/
H A Dk5login.c123 k5_verify_creds(krb5_context c, krb5_ccache ccache) in k5_verify_creds() argument
156 0, ccache, &packet); in k5_verify_creds()
238 krb5_ccache ccache; in k5_read_creds() local
244 kerror = krb5_cc_default(kcontext, &ccache); in k5_read_creds()
270 kerror = krb5_cc_retrieve_cred(kcontext, ccache, 0, in k5_read_creds()
286 krb5_cc_destroy(kcontext, ccache); in k5_read_creds()
294 krb5_ccache ccache; in k5_write_creds() local
299 kerror = krb5_cc_default(kcontext, &ccache); in k5_write_creds()
305 kerror = krb5_cc_initialize(kcontext, ccache, me); in k5_write_creds()
312 kerror = krb5_cc_store_cred(kcontext, ccache, &forw_creds); in k5_write_creds()
[all …]
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dauth-krb5.c169 krb5_ccache ccache = NULL; in auth_krb5_tgt() local
178 problem = krb5_cc_new_unique(authctxt->krb5_ctx, "FILE", NULL, &ccache); in auth_krb5_tgt()
182 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, in auth_krb5_tgt()
188 ccache, tgt); in auth_krb5_tgt()
192 authctxt->krb5_fwd_ccache = ccache; in auth_krb5_tgt()
193 ccache = NULL; in auth_krb5_tgt()
221 if (ccache) in auth_krb5_tgt()
222 krb5_cc_destroy(authctxt->krb5_ctx, ccache); in auth_krb5_tgt()
234 krb5_ccache ccache = NULL; in auth_krb5_password() local
249 krb5_mcc_ops.prefix, NULL, &ccache); in auth_krb5_password()
[all …]
H A Dgss-serv-krb5.c117 krb5_ccache ccache; in ssh_gssapi_krb5_storecreds() local
133 NULL, &ccache)) != 0) { in ssh_gssapi_krb5_storecreds()
145 krb5_cc_destroy(krb_context, ccache); in ssh_gssapi_krb5_storecreds()
149 if ((problem = krb5_cc_initialize(krb_context, ccache, princ))) { in ssh_gssapi_krb5_storecreds()
154 krb5_cc_destroy(krb_context, ccache); in ssh_gssapi_krb5_storecreds()
161 client->creds, ccache))) { in ssh_gssapi_krb5_storecreds()
163 krb5_cc_destroy(krb_context, ccache); in ssh_gssapi_krb5_storecreds()
167 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); in ssh_gssapi_krb5_storecreds()
178 krb5_cc_close(krb_context, ccache); in ssh_gssapi_krb5_storecreds()
/netbsd-src/crypto/external/bsd/heimdal/dist/kuser/
H A Dkinit.c286 krb5_ccache ccache, in get_anon_pkinit_tgs_name() argument
293 ret = krb5_cc_get_config(context, ccache, NULL, "anon_pkinit_realm", &data); in get_anon_pkinit_tgs_name()
470 krb5_ccache ccache, in get_new_tickets() argument
772 ret = krb5_cc_new_unique(context, krb5_cc_get_type(context, ccache), in get_new_tickets()
788 ret = krb5_cc_move(context, tempccache, ccache); in get_new_tickets()
796 krb5_cc_switch(context, ccache); in get_new_tickets()
800 store_ntlmkey(context, ccache, ntlm_domain, &ntlmkey); in get_new_tickets()
815 krb5_cc_set_config(context, ccache, NULL, "realm-config", &data); in get_new_tickets()
824 krb5_cc_set_config(context, ccache, NULL, "anon_pkinit_realm", &data); in get_new_tickets()
936 krb5_ccache ccache; member
[all …]
H A Dkdestroy.c77 krb5_ccache ccache; in main() local
113 while (krb5_cccol_cursor_next (context, cursor, &ccache) == 0 && ccache != NULL) { in main()
115 ret = krb5_cc_destroy (context, ccache); in main()
125 ret = krb5_cc_default(context, &ccache); in main()
131 &ccache); in main()
147 ret = krb5_cc_remove_cred(context, ccache, 0, &mcred); in main()
152 krb5_cc_close(context, ccache); in main()
158 ret = krb5_cc_destroy (context, ccache); in main()
/netbsd-src/external/mpl/bind/dist/bin/tests/system/nsupdate/krb/
H A Dsetup.sh103 kinit -V -k -t krb5-machine.keytab -l ${lifetime}d -c krb5-machine.ccache host/machine.example.com@…
104 kinit -V -k -t ms-machine.keytab -l ${lifetime}d -c ms-machine.ccache 'machine$@EXAMPLE.COM'
111 cp krb5-machine.ccache ../ns7/machine.ccache
112 cp krb5-machine.ccache ../ns8/machine.ccache
113 cp ms-machine.ccache ../ns9/machine.ccache
114 cp ms-machine.ccache ../ns10/machine.ccache
/netbsd-src/external/mpl/dhcp/dist/server/
H A Dldap_krb_helper.c72 check_credentials(krb5_context context, krb5_ccache ccache, krb5_principal service) in check_credentials() argument
94 krberr = krb5_cc_retrieve_cred(context, ccache, 0, &mcreds, &creds); in check_credentials()
136 krb5_ccache ccache = NULL; in krb5_get_tgt() local
169 krberr = krb5_cc_resolve(context, ccname, &ccache); in krb5_get_tgt()
175 result = check_credentials(context, ccache, kprincpw); in krb5_get_tgt()
201 krberr = krb5_cc_initialize(context, ccache, kprincpw); in krb5_get_tgt()
204 krberr = krb5_cc_store_cred(context, ccache, &my_creds); in krb5_get_tgt()
211 if (ccache) krb5_cc_close(context, ccache); in krb5_get_tgt()
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/kinit/
H A Dkinit.c34 krb5_ccache ccache; member
64 rc = krb5_cc_get_principal(kid->ctx, kid->ccache, &princ); in kinit_check_tgt()
77 rc = krb5_cc_start_seq_get(kid->ctx, kid->ccache, &cursor); in kinit_check_tgt()
84 while (!(rc = krb5_cc_next_cred(kid->ctx, kid->ccache, &cursor, &creds))) { in kinit_check_tgt()
129 krb5_cc_end_seq_get(kid->ctx, kid->ccache, &cursor); in kinit_check_tgt()
152 rc = krb5_get_renewed_creds(kid->ctx, &creds, kid->princ, kid->ccache, NULL); in kinit_qtask()
160 krb5_cc_initialize(kid->ctx, kid->ccache, creds.client); in kinit_qtask()
161 krb5_cc_store_cred(kid->ctx, kid->ccache, &creds); in kinit_qtask()
212 rc = krb5_cc_default(kid->ctx, &kid->ccache ); in kinit_initialize()
233 rc = krb5_get_init_creds_opt_set_out_ccache( kid->ctx, kid->opts, kid->ccache); in kinit_initialize()
[all …]
/netbsd-src/lib/libpam/modules/pam_afslog/
H A Dpam_afslog.c56 krb5_ccache ccache; in pam_sm_setcred() local
74 kret = krb5_cc_resolve(ctx, ccname, &ccache); in pam_sm_setcred()
76 kret = krb5_cc_default(ctx, &ccache); in pam_sm_setcred()
81 kret = krb5_cc_get_principal(ctx, ccache, &principal); in pam_sm_setcred()
104 krb5_afslog(ctx, ccache, in pam_sm_setcred()
117 krb5_cc_close(ctx, ccache); in pam_sm_setcred()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dinit_c.c340 krb5_ccache ccache, in _kadm5_c_get_cred_cache() argument
359 if(ccache != NULL) { in _kadm5_c_get_cred_cache()
360 id = ccache; in _kadm5_c_get_cred_cache()
407 if(ccache != NULL) in _kadm5_c_get_cred_cache()
412 if(id && (id != ccache)) in _kadm5_c_get_cred_cache()
477 ctx->ccache, &cc); in kadm_connect()
502 if(ctx->ccache == NULL) in kadm_connect()
528 if(ctx->ccache == NULL) in kadm_connect()
559 if(ctx->ccache == NULL) in kadm_connect()
581 krb5_ccache ccache, in kadm5_c_init_with_context() argument
[all …]

123456789