Lines Matching defs:cc
417 static json_t *ccache_to_json(struct kcm_ccache *cc)
424 princ = princ_to_json(cc, cc->client);
431 creds = creds_to_json_array(cc->creds);
443 "kdc_offset", cc->kdc_offset,
459 struct kcm_ccache *cc,
466 jcc = ccache_to_json(cc);
483 *_sec_key = sec_key_create(mem_ctx, cc->name, cc->uuid);
495 struct kcm_ccache *cc,
512 ret = ccache_to_sec_kv(mem_ctx, cc, &key, &value);
516 cc->name, ret, sss_strerror(ret));
781 static errno_t json_to_creds(struct kcm_ccache *cc,
797 ret = json_elem_to_cred(cc, value, &crd);
805 ret = kcm_cc_store_creds(cc, crd);
817 static errno_t sec_json_value_to_ccache(struct kcm_ccache *cc,
831 "kdc_offset", &cc->kdc_offset,
848 ret = json_to_princ(cc, princ, &cc->client);
856 ret = json_to_creds(cc, creds);
879 struct kcm_ccache *cc = NULL;
896 cc = talloc_zero(tmp_ctx, struct kcm_ccache);
897 if (cc == NULL) {
905 cc->owner.uid = cli_creds_get_uid(client);
906 cc->owner.gid = cli_creds_get_gid(client);
908 ret = sec_key_parse(cc, sec_key, &cc->name, cc->uuid);
916 ret = sec_json_value_to_ccache(cc, root);
925 *_cc = talloc_steal(mem_ctx, cc);