Lines Matching refs:kcc_context
66 krb5_errx(kcc_context, 1,
84 ret = krb5_cc_cache_get_first(kcc_context, NULL, &cursor);
86 krb5_err(kcc_context, 1, ret, "krb5_cc_cache_get_first");
88 while (krb5_cc_cache_next(kcc_context, cursor, &id) == 0) {
92 ret = krb5_cc_get_principal(kcc_context, id, &p);
96 ret = krb5_unparse_name(kcc_context, p, &name);
97 krb5_free_principal(kcc_context, p);
102 rtbl_add_column_entry_by_id(ct, 2, krb5_cc_get_type(kcc_context, id));
109 krb5_cc_cache_end_seq_get(kcc_context, cursor);
118 krb5_errx(kcc_context, 1, "Cache number '%s' is invalid", name);
120 krb5_errx(kcc_context, 1, "Cache number '%s' is too large", name);
125 krb5_errx(kcc_context, 1, "No cache selected");
128 krb5_cc_close(kcc_context, ids[i]);
133 ret = krb5_parse_name(kcc_context, opt->principal_string, &p);
135 krb5_err(kcc_context, 1, ret, "krb5_parse_name: %s",
138 ret = krb5_cc_cache_match(kcc_context, p, &id);
140 krb5_err(kcc_context, 1, ret,
144 krb5_free_principal(kcc_context, p);
150 ops = krb5_cc_get_prefix_ops(kcc_context, opt->type_string);
152 krb5_err(kcc_context, 1, 0, "krb5_cc_get_prefix_ops");
156 krb5_errx(kcc_context, 1, N_("out of memory", ""));
158 ret = krb5_cc_resolve(kcc_context, str, &id);
160 krb5_err(kcc_context, 1, ret, "krb5_cc_resolve: %s", str);
164 krb5_errx(kcc_context, 1, "missing option for kswitch");
167 ret = krb5_cc_switch(kcc_context, id);
169 krb5_err(kcc_context, 1, ret, "krb5_cc_switch");