Searched refs:ccache (Results 1 - 25 of 80) sorted by relevance

1234

/freebsd-11-stable/crypto/heimdal/kcm/
H A Dacquire.c42 kcm_ccache ccache,
54 KCM_ASSERT_VALID(ccache);
57 if (ccache->flags & KCM_FLAGS_USE_CACHED_KEY) {
58 if (ccache->key.keyblock.keyvalue.length == 0)
61 } else if (ccache->flags & KCM_FLAGS_USE_KEYTAB) {
62 if (ccache->key.keytab == NULL)
67 ccache->name);
71 HEIMDAL_MUTEX_lock(&ccache->mutex);
73 /* Fake up an internal ccache */
74 kcm_internal_ccache(context, ccache,
41 kcm_ccache_acquire(krb5_context context, kcm_ccache ccache, krb5_creds **credp) argument
[all...]
H A Dacl.c41 kcm_ccache ccache)
48 KCM_ASSERT_VALID(ccache);
86 if (ccache->flags & KCM_FLAGS_OWNER_IS_SYSTEM) {
114 if (kcm_is_same_session(client, ccache->uid, ccache->session)) {
121 if (client->uid == ccache->uid) {
128 if (client->gid == ccache->gid) {
135 ret = (ccache->mode & mask) ? 0 : KRB5_FCC_PERM;
140 client->pid, kcm_op2string(opcode), ccache->name);
149 kcm_ccache ccache,
38 kcm_access(krb5_context context, kcm_client *client, kcm_operation opcode, kcm_ccache ccache) argument
147 kcm_chmod(krb5_context context, kcm_client *client, kcm_ccache ccache, uint16_t mode) argument
174 kcm_chown(krb5_context context, kcm_client *client, kcm_ccache ccache, uid_t uid, gid_t gid) argument
[all...]
H A Drenew.c39 kcm_ccache ccache,
50 KCM_ASSERT_VALID(ccache);
52 if (ccache->client == NULL) {
58 HEIMDAL_MUTEX_lock(&ccache->mutex);
60 /* Fake up an internal ccache */
61 kcm_internal_ccache(context, ccache, &ccdata);
64 in.client = ccache->client;
66 if (ccache->server != NULL) {
67 ret = krb5_copy_principal(context, ccache->server, &in.server);
84 if (ccache
38 kcm_ccache_refresh(krb5_context context, kcm_ccache ccache, krb5_creds **credp) argument
[all...]
H A Dclient.c43 kcm_ccache *ccache)
47 ret = kcm_ccache_resolve(context, name, ccache);
54 ret = kcm_access(context, client, opcode, *ccache);
57 kcm_release_ccache(context, *ccache);
69 kcm_ccache ccache; local
71 ret = kcm_ccache_resolve(context, name, &ccache);
78 ret = kcm_access(context, client, KCM_OP_DESTROY, ccache);
79 kcm_cleanup_events(context, ccache);
80 kcm_release_ccache(context, ccache);
94 kcm_ccache ccache; local
39 kcm_ccache_resolve_client(krb5_context context, kcm_client *client, kcm_operation opcode, const char *name, kcm_ccache *ccache) argument
[all...]
H A Dconfig.c163 static int parse_owners(kcm_ccache ccache) argument
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...]
H A Devents.c84 event->ccache->name);
112 kcm_retain_ccache(context, event->ccache);
113 (*e)->ccache = event->ccache;
164 kcm_release_ccache(context, (*e)->ccache);
175 kcm_ccache ccache,
180 if (ccache->client == NULL)
184 !krb5_principal_compare(context, ccache->client, newcred->client))
188 if (ccache->creds == NULL)
195 return krb5_compare_creds(context, whichfields, newcred, &ccache
174 is_primary_credential_p(krb5_context context, kcm_ccache ccache, krb5_creds *newcred) argument
207 kcm_ccache ccache = event->ccache; local
243 kcm_ccache_enqueue_default(krb5_context context, kcm_ccache ccache, krb5_creds *newcred) argument
297 kcm_cleanup_events(krb5_context context, kcm_ccache ccache) argument
[all...]
H A Dcache.c58 kcm_ccache *ccache)
63 *ccache = NULL;
80 *ccache = p;
91 kcm_ccache *ccache)
96 *ccache = NULL;
113 *ccache = p;
229 kcm_ccache *p, ccache; local
251 ccache = *p;
253 kcm_free_ccache_data_internal(context, ccache);
254 free(ccache);
56 kcm_ccache_resolve(krb5_context context, const char *name, kcm_ccache *ccache) argument
89 kcm_ccache_resolve_by_uuid(krb5_context context, kcmuuid_t uuid, kcm_ccache *ccache) argument
263 kcm_ccache_alloc(krb5_context context, const char *name, kcm_ccache *ccache) argument
341 kcm_ccache_remove_creds_internal(krb5_context context, kcm_ccache ccache) argument
361 kcm_ccache_remove_creds(krb5_context context, kcm_ccache ccache) argument
410 kcm_retain_ccache(krb5_context context, kcm_ccache ccache) argument
442 kcm_ccache_gen_new(krb5_context context, pid_t pid, uid_t uid, gid_t gid, kcm_ccache *ccache) argument
463 kcm_ccache_new(krb5_context context, const char *name, kcm_ccache *ccache) argument
482 kcm_ccache_destroy_if_empty(krb5_context context, kcm_ccache ccache) argument
498 kcm_ccache_store_cred(krb5_context context, kcm_ccache ccache, krb5_creds *creds, int copy) argument
516 kcm_ccache_find_cred_uuid(krb5_context context, kcm_ccache ccache, kcmuuid_t uuid) argument
532 kcm_ccache_store_cred_internal(krb5_context context, kcm_ccache ccache, krb5_creds *creds, int copy, krb5_creds **credp) argument
567 kcm_ccache_remove_cred_internal(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds) argument
594 kcm_ccache_remove_cred(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds) argument
611 kcm_ccache_retrieve_cred_internal(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds, krb5_creds **creds) argument
641 kcm_ccache_retrieve_cred(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds, krb5_creds **credp) argument
[all...]
H A Dprotocol.c82 kcm_ccache ccache; local
91 name, &ccache);
97 ret = krb5_store_stringz(response, ccache->name);
99 kcm_release_ccache(context, ccache);
105 kcm_release_ccache(context, ccache);
153 kcm_ccache ccache; local
173 ret = kcm_ccache_new_client(context, client, name, &ccache);
180 ccache->client = principal;
195 event.ccache = ccache;
254 kcm_ccache ccache; local
313 kcm_ccache ccache; local
402 kcm_ccache ccache; local
446 kcm_ccache ccache; local
491 kcm_ccache ccache; local
550 kcm_ccache ccache; local
607 kcm_ccache ccache; local
655 kcm_ccache ccache; local
708 kcm_ccache ccache; local
761 kcm_ccache ccache; local
853 kcm_ccache ccache; local
1162 kcm_ccache ccache; local
1193 kcm_ccache ccache; local
[all...]
/freebsd-11-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dklist.c70 krb5_ccache ccache,
86 krb5_cc_get_type(context, ccache),
87 krb5_cc_get_name(context, ccache));
91 ret = krb5_cc_start_seq_get (context, ccache, &cursor);
100 ccache,
111 ret = krb5_cc_end_seq_get (context, ccache, &cursor);
125 krb5_ccache ccache; local
136 ret = krb5_cc_resolve(context, k5ccname, &ccache);
138 ret = krb5_cc_default (context, &ccache);
144 ret = krb5_cc_get_principal (context, ccache,
69 print_tickets(krb5_context context, krb5_ccache ccache, krb5_principal principal) argument
[all...]
/freebsd-11-stable/crypto/heimdal/kuser/
H A Dkdestroy.c75 krb5_ccache ccache; local
109 while (krb5_cccol_cursor_next (context, cursor, &ccache) == 0 && ccache != NULL) {
111 ret = krb5_cc_destroy (context, ccache);
121 ret = krb5_cc_default(context, &ccache);
127 &ccache);
143 ret = krb5_cc_remove_cred(context, ccache, 0, &mcred);
148 krb5_cc_close(context, ccache);
154 ret = krb5_cc_destroy (context, ccache);
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/
H A Drelease_cred.c61 if (cred->ccache != NULL) {
63 krb5_cc_destroy(context, cred->ccache);
65 krb5_cc_close(context, cred->ccache);
H A Dadd_cred.c110 handle->ccache = NULL;
145 if (cred->ccache) {
151 type = krb5_cc_get_type(context, cred->ccache);
159 NULL, &handle->ccache);
165 ret = krb5_cc_copy_cache(context, cred->ccache,
166 handle->ccache);
173 name = krb5_cc_get_name(context, cred->ccache);
186 &handle->ccache);
230 if (handle->ccache)
231 krb5_cc_destroy(context, handle->ccache);
[all...]
H A Dinquire_cred_by_oid.c56 if (cred->ccache == NULL) {
62 ret = krb5_cc_get_full_name(context, cred->ccache, &str);
H A Dacquire_cred.c120 krb5_ccache ccache; local
125 ccache = NULL;
145 &ccache);
152 if (ccache == NULL) {
153 kret = krb5_cc_default(context, &ccache);
157 kret = krb5_cc_get_principal(context, ccache, &def_princ);
160 krb5_cc_close(context, ccache);
172 krb5_cc_close(context, ccache);
173 ccache = NULL;
211 NULL, &ccache);
[all...]
/freebsd-11-stable/crypto/heimdal/lib/kadm5/
H A Dclient_glue.c116 krb5_ccache ccache,
124 ccache,
135 krb5_ccache ccache,
144 ccache,
115 kadm5_init_with_creds(const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument
133 kadm5_init_with_creds_ctx(krb5_context context, const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument
H A Dserver_glue.c116 krb5_ccache ccache,
124 ccache,
135 krb5_ccache ccache,
144 ccache,
115 kadm5_init_with_creds(const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument
133 kadm5_init_with_creds_ctx(krb5_context context, const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument
/freebsd-11-stable/crypto/openssh/
H A Dgss-serv-krb5.c120 krb5_ccache ccache; local
138 NULL, &ccache)) != 0) {
142 if ((problem = krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))) {
150 if ((problem = ssh_krb5_cc_gen(krb_context, &ccache))) {
166 if ((problem = krb5_cc_initialize(krb_context, ccache, princ))) {
171 krb5_cc_destroy(krb_context, ccache);
178 client->creds, ccache))) {
180 krb5_cc_destroy(krb_context, ccache);
184 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
195 krb5_cc_close(krb_context, ccache);
[all...]
H A Dauth-krb5.c79 krb5_ccache ccache = NULL; local
102 krb5_mcc_ops.prefix, NULL, &ccache);
104 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache);
109 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache,
117 ccache, password, 1, NULL);
134 problem = krb5_cc_copy_cache(authctxt->krb5_ctx, ccache,
136 krb5_cc_destroy(authctxt->krb5_ctx, ccache);
137 ccache = NULL;
199 if (ccache)
200 krb5_cc_destroy(authctxt->krb5_ctx, ccache);
242 ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) argument
[all...]
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dverify_init.c75 krb5_ccache *ccache,
115 if (ccache && *ccache)
116 local_ccache = *ccache;
190 (ccache == NULL
191 || (ret != 0 && *ccache == NULL)))
194 if (ret == 0 && ccache != NULL && *ccache == NULL)
195 *ccache = local_ccache;
206 * @param ccache th
71 krb5_verify_init_creds(krb5_context context, krb5_creds *creds, krb5_principal ap_req_server, krb5_keytab ap_req_keytab, krb5_ccache *ccache, krb5_verify_init_creds_opt *options) argument
215 krb5_get_validated_creds(krb5_context context, krb5_creds *creds, krb5_principal client, krb5_ccache ccache, char *service) argument
[all...]
H A Dmk_req.c42 krb5_ccache ccache,
50 ret = krb5_cc_get_principal(context, ccache, &this_cred.client);
65 ret = krb5_get_credentials (context, 0, ccache, &this_cred, &cred);
87 krb5_ccache ccache,
111 server, in_data, ccache, outbuf);
37 krb5_mk_req_exact(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, const krb5_principal server, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
81 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, const char *service, const char *hostname, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
H A Dsendauth.c73 krb5_ccache ccache,
123 if (ccache == NULL) {
124 ret = krb5_cc_default (context, &ccache);
131 ret = krb5_cc_get_principal (context, ccache, &this_client);
134 krb5_cc_close(context, ccache);
147 ret = krb5_get_credentials (context, 0, ccache, in_creds, &creds);
150 krb5_cc_close(context, ccache);
157 krb5_cc_close(context, ccache);
64 krb5_sendauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer p_fd, const char *appl_version, krb5_principal client, krb5_principal server, krb5_flags ap_req_options, krb5_data *in_data, krb5_creds *in_creds, krb5_ccache ccache, krb5_error **ret_error, krb5_ap_rep_enc_part **rep_result, krb5_creds **out_creds) argument
H A Dverify_user.c39 krb5_ccache ccache,
67 if(ccache == NULL)
70 id = ccache;
76 if(ccache == NULL)
88 * As a side effect, fresh tickets are obtained and stored in `ccache'.
119 krb5_verify_opt_set_ccache(krb5_verify_opt *opt, krb5_ccache ccache) argument
121 opt->ccache = ccache;
178 return verify_common (context, principal, OPT(ccache, NULL),
221 krb5_ccache ccache,
37 verify_common(krb5_context context, krb5_principal principal, krb5_ccache ccache, krb5_keytab keytab, krb5_boolean secure, const char *service, krb5_creds cred) argument
219 krb5_verify_user(krb5_context context, krb5_principal principal, krb5_ccache ccache, const char *password, krb5_boolean secure, const char *service) argument
243 krb5_verify_user_lrealm(krb5_context context, krb5_principal principal, krb5_ccache ccache, const char *password, krb5_boolean secure, const char *service) argument
[all...]
H A Dacache.c56 cc_ccache_t ccache; member in struct:krb5_acc
444 error = (*a->ccache->func->get_name)(a->ccache, &name);
480 &a->ccache);
536 error = (*a->context->func->open_ccache)(a->context, res, &a->ccache);
546 error = (*a->ccache->func->get_kdc_time_offset)(a->ccache,
553 a->ccache = NULL;
575 a->ccache = NULL;
599 &a->ccache);
[all...]
H A Ddeprecated.c228 krb5_ccache ccache,
243 ccache,
270 krb5_ccache ccache,
282 ccache,
296 ccache,
353 krb5_ccache ccache,
373 ccache,
378 * Generate a new ccache of type `ops' in `id'.
533 krb5_ccache ccache,
542 return _krb5_get_cred_kdc_any(context, f, ccache,
[all...]
/freebsd-11-stable/crypto/heimdal/appl/test/
H A Duu_server.c45 krb5_ccache ccache; local
87 status = krb5_cc_default(context, &ccache);
90 status = krb5_cc_get_principal(context, ccache, &in_creds.client);
102 status = krb5_get_credentials(context, KRB5_GC_USER_USER, ccache,
107 status = krb5_cc_default(context, &ccache);
120 ccache,

Completed in 172 milliseconds

1234