Lines Matching refs:ccache

82     kcm_ccache ccache;
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;
173 ret = kcm_ccache_new_client(context, client, name, &ccache);
180 ccache->client = principal;
195 event.ccache = ccache;
200 kcm_release_ccache(context, ccache);
254 kcm_ccache ccache;
270 name, &ccache);
277 ret = kcm_ccache_store_cred(context, ccache, &creds, 0);
281 kcm_release_ccache(context, ccache);
285 kcm_ccache_enqueue_default(context, ccache, &creds);
288 kcm_release_ccache(context, ccache);
313 kcm_ccache ccache;
346 name, &ccache);
353 ret = kcm_ccache_retrieve_cred(context, ccache, flags,
360 HEIMDAL_MUTEX_lock(&ccache->mutex);
362 /* Fake up an internal ccache */
363 kcm_internal_ccache(context, ccache, &ccdata);
370 HEIMDAL_MUTEX_unlock(&ccache->mutex);
379 kcm_release_ccache(context, ccache);
402 kcm_ccache ccache;
412 name, &ccache);
418 if (ccache->client == NULL)
421 ret = krb5_store_principal(response, ccache->client);
424 kcm_release_ccache(context, ccache);
446 kcm_ccache ccache;
456 name, &ccache);
461 for (creds = ccache->creds ; creds ; creds = creds->next) {
470 kcm_release_ccache(context, ccache);
491 kcm_ccache ccache;
504 name, &ccache);
511 kcm_release_ccache(context, ccache);
516 c = kcm_ccache_find_cred_uuid(context, ccache, uuid);
518 kcm_release_ccache(context, ccache);
522 HEIMDAL_MUTEX_lock(&ccache->mutex);
524 HEIMDAL_MUTEX_unlock(&ccache->mutex);
526 kcm_release_ccache(context, ccache);
550 kcm_ccache ccache;
572 name, &ccache);
579 ret = kcm_ccache_remove_cred(context, ccache, whichfields, &mcreds);
585 kcm_release_ccache(context, ccache);
607 kcm_ccache ccache;
623 name, &ccache);
631 kcm_release_ccache(context, ccache);
655 kcm_ccache ccache;
677 name, &ccache);
683 ret = kcm_chown(context, client, ccache, uid, gid);
686 kcm_release_ccache(context, ccache);
708 kcm_ccache ccache;
724 name, &ccache);
730 ret = kcm_chmod(context, client, ccache, mode);
733 kcm_release_ccache(context, ccache);
761 kcm_ccache ccache;
798 name, &ccache);
800 HEIMDAL_MUTEX_lock(&ccache->mutex);
802 if (ccache->server != NULL) {
803 krb5_free_principal(context, ccache->server);
804 ccache->server = NULL;
807 krb5_free_keyblock(context, &ccache->key.keyblock);
809 ccache->server = server;
810 ccache->key.keyblock = key;
811 ccache->flags |= KCM_FLAGS_USE_CACHED_KEY;
813 ret = kcm_ccache_enqueue_default(context, ccache, NULL);
815 ccache->server = NULL;
816 krb5_keyblock_zero(&ccache->key.keyblock);
817 ccache->flags &= ~(KCM_FLAGS_USE_CACHED_KEY);
820 HEIMDAL_MUTEX_unlock(&ccache->mutex);
830 kcm_release_ccache(context, ccache);
853 kcm_ccache ccache;
887 name, &ccache);
894 HEIMDAL_MUTEX_lock(&ccache->mutex);
896 /* Fake up an internal ccache */
897 kcm_internal_ccache(context, ccache, &ccdata);
899 in.client = ccache->client;
907 HEIMDAL_MUTEX_unlock(&ccache->mutex);
914 kcm_release_ccache(context, ccache);
1162 kcm_ccache ccache;
1171 ret = kcm_ccache_resolve_client(context, client, opcode, name, &ccache);
1176 HEIMDAL_MUTEX_lock(&ccache->mutex);
1177 ret = krb5_store_int32(response, ccache->kdc_offset);
1178 HEIMDAL_MUTEX_unlock(&ccache->mutex);
1180 kcm_release_ccache(context, ccache);
1193 kcm_ccache ccache;
1209 ret = kcm_ccache_resolve_client(context, client, opcode, name, &ccache);
1214 HEIMDAL_MUTEX_lock(&ccache->mutex);
1215 ccache->kdc_offset = offset;
1216 HEIMDAL_MUTEX_unlock(&ccache->mutex);
1218 kcm_release_ccache(context, ccache);