Lines Matching refs:ccache
58 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()
265 kcm_ccache *ccache) in kcm_ccache_alloc() argument
271 *ccache = NULL; in kcm_ccache_alloc()
326 *ccache = slot; in kcm_ccache_alloc()
342 kcm_ccache ccache) in kcm_ccache_remove_creds_internal() argument
346 k = ccache->creds; in kcm_ccache_remove_creds_internal()
355 ccache->creds = NULL; in kcm_ccache_remove_creds_internal()
362 kcm_ccache ccache) in kcm_ccache_remove_creds() argument
366 KCM_ASSERT_VALID(ccache); in kcm_ccache_remove_creds()
368 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_remove_creds()
369 ret = kcm_ccache_remove_creds_internal(context, ccache); in kcm_ccache_remove_creds()
370 HEIMDAL_MUTEX_unlock(&ccache->mutex); in kcm_ccache_remove_creds()
411 kcm_ccache ccache) in kcm_retain_ccache() argument
413 KCM_ASSERT_VALID(ccache); in kcm_retain_ccache()
415 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_retain_ccache()
416 ccache->refcnt++; in kcm_retain_ccache()
417 HEIMDAL_MUTEX_unlock(&ccache->mutex); in kcm_retain_ccache()
446 kcm_ccache *ccache) in kcm_ccache_gen_new() argument
456 ret = kcm_ccache_new(context, name, ccache); in kcm_ccache_gen_new()
465 kcm_ccache *ccache) in kcm_ccache_new() argument
469 ret = kcm_ccache_alloc(context, name, ccache); in kcm_ccache_new()
475 kcm_retain_ccache(context, *ccache); in kcm_ccache_new()
483 kcm_ccache ccache) in kcm_ccache_destroy_if_empty() argument
487 KCM_ASSERT_VALID(ccache); in kcm_ccache_destroy_if_empty()
489 if (ccache->creds == NULL) { in kcm_ccache_destroy_if_empty()
490 ret = kcm_ccache_destroy(context, ccache->name); in kcm_ccache_destroy_if_empty()
499 kcm_ccache ccache, in kcm_ccache_store_cred() argument
506 KCM_ASSERT_VALID(ccache); in kcm_ccache_store_cred()
508 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_store_cred()
509 ret = kcm_ccache_store_cred_internal(context, ccache, creds, copy, &tmp); in kcm_ccache_store_cred()
510 HEIMDAL_MUTEX_unlock(&ccache->mutex); in kcm_ccache_store_cred()
517 kcm_ccache ccache, in kcm_ccache_find_cred_uuid() argument
522 for (c = ccache->creds; c != NULL; c = c->next) in kcm_ccache_find_cred_uuid()
533 kcm_ccache ccache, in kcm_ccache_store_cred_internal() argument
541 for (c = &ccache->creds; *c != NULL; c = &(*c)->next) in kcm_ccache_store_cred_internal()
568 kcm_ccache ccache, in kcm_ccache_remove_cred_internal() argument
577 for (c = &ccache->creds; *c != NULL; c = &(*c)->next) { in kcm_ccache_remove_cred_internal()
595 kcm_ccache ccache, in kcm_ccache_remove_cred() argument
601 KCM_ASSERT_VALID(ccache); in kcm_ccache_remove_cred()
603 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_remove_cred()
604 ret = kcm_ccache_remove_cred_internal(context, ccache, whichfields, mcreds); in kcm_ccache_remove_cred()
605 HEIMDAL_MUTEX_unlock(&ccache->mutex); in kcm_ccache_remove_cred()
612 kcm_ccache ccache, in kcm_ccache_retrieve_cred_internal() argument
626 for (c = ccache->creds; c != NULL; c = c->next) { in kcm_ccache_retrieve_cred_internal()
642 kcm_ccache ccache, in kcm_ccache_retrieve_cred() argument
649 KCM_ASSERT_VALID(ccache); in kcm_ccache_retrieve_cred()
651 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_retrieve_cred()
652 ret = kcm_ccache_retrieve_cred_internal(context, ccache, in kcm_ccache_retrieve_cred()
654 HEIMDAL_MUTEX_unlock(&ccache->mutex); in kcm_ccache_retrieve_cred()