Lines Matching refs:ccache

42 		   kcm_ccache ccache,  in kcm_ccache_acquire()  argument
54 KCM_ASSERT_VALID(ccache); in kcm_ccache_acquire()
57 if (ccache->flags & KCM_FLAGS_USE_CACHED_KEY) { in kcm_ccache_acquire()
58 if (ccache->key.keyblock.keyvalue.length == 0) in kcm_ccache_acquire()
61 } else if (ccache->flags & KCM_FLAGS_USE_KEYTAB) { in kcm_ccache_acquire()
62 if (ccache->key.keytab == NULL) in kcm_ccache_acquire()
67 ccache->name); in kcm_ccache_acquire()
71 HEIMDAL_MUTEX_lock(&ccache->mutex); in kcm_ccache_acquire()
74 kcm_internal_ccache(context, ccache, &ccdata); in kcm_ccache_acquire()
77 if (ccache->server != NULL) { in kcm_ccache_acquire()
78 ret = krb5_unparse_name(context, ccache->server, &in_tkt_service); in kcm_ccache_acquire()
81 ccache->name, krb5_get_err_text(context, ret)); in kcm_ccache_acquire()
86 realm = krb5_principal_get_realm(context, ccache->client); in kcm_ccache_acquire()
92 if (ccache->tkt_life != 0) in kcm_ccache_acquire()
93 krb5_get_init_creds_opt_set_tkt_life(opt, ccache->tkt_life); in kcm_ccache_acquire()
94 if (ccache->renew_life != 0) in kcm_ccache_acquire()
95 krb5_get_init_creds_opt_set_renew_life(opt, ccache->renew_life); in kcm_ccache_acquire()
97 if (ccache->flags & KCM_FLAGS_USE_CACHED_KEY) { in kcm_ccache_acquire()
100 ccache->client, in kcm_ccache_acquire()
101 &ccache->key.keyblock, in kcm_ccache_acquire()
109 ccache->client, in kcm_ccache_acquire()
110 ccache->key.keytab, in kcm_ccache_acquire()
118 ccache->name, krb5_get_err_text(context, ret)); in kcm_ccache_acquire()
128 kcm_ccache_remove_creds_internal(context, ccache); in kcm_ccache_acquire()
130 ret = kcm_ccache_store_cred_internal(context, ccache, &cred, 0, credp); in kcm_ccache_acquire()
133 ccache->name, krb5_get_err_text(context, ret)); in kcm_ccache_acquire()
142 HEIMDAL_MUTEX_unlock(&ccache->mutex); in kcm_ccache_acquire()