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