Home
last modified time | relevance | path

Searched refs:kcc_context (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/heimdal/kuser/
H A Dkswitch.c66 krb5_errx(kcc_context, 1, in kswitch()
84 ret = krb5_cc_cache_get_first(kcc_context, NULL, &cursor); in kswitch()
86 krb5_err(kcc_context, 1, ret, "krb5_cc_cache_get_first"); in kswitch()
88 while (krb5_cc_cache_next(kcc_context, cursor, &id) == 0) { in kswitch()
92 ret = krb5_cc_get_principal(kcc_context, id, &p); in kswitch()
94 ret = krb5_unparse_name(kcc_context, p, &name); in kswitch()
98 krb5_free_principal(kcc_context, p); in kswitch()
103 rtbl_add_column_entry_by_id(ct, 2, krb5_cc_get_type(kcc_context, id)); in kswitch()
110 krb5_cc_cache_end_seq_get(kcc_context, cursor); in kswitch()
119 krb5_errx(kcc_context, 1, "Cache number '%s' is invalid", name); in kswitch()
[all …]
H A Dcopy_cred_cache.c95 ret = krb5_parse_name(kcc_context, opt->service_string, &ctx.mcreds.server); in copy_cred_cache()
97 krb5_err(kcc_context, 1, ret, "%s", opt->service_string); in copy_cred_cache()
101 ret = krb5_string_to_enctype(kcc_context, opt->enctype_string, &enctype); in copy_cred_cache()
103 krb5_err(kcc_context, 1, ret, "%s", opt->enctype_string); in copy_cred_cache()
108 parse_ticket_flags(kcc_context, opt->flags_string, &ctx.mcreds.flags); in copy_cred_cache()
119 krb5_set_fcache_version(kcc_context, opt->fcache_version_integer); in copy_cred_cache()
122 from_name = krb5_cc_default_name(kcc_context); in copy_cred_cache()
129 ret = krb5_cc_resolve(kcc_context, from_name, &from_ccache); in copy_cred_cache()
131 krb5_err(kcc_context, 1, ret, "%s", from_name); in copy_cred_cache()
135 ret = krb5_cc_get_principal(kcc_context, from_ccache, &client); in copy_cred_cache()
[all …]
H A Dkcc.c38 krb5_context kcc_context; variable
115 ret = krb5_init_context(&kcc_context); in main()
153 krb5_warnx(kcc_context, "unrecognized command: %s", argv[0]); in main()
163 krb5_free_context(kcc_context); in main()
H A Dklist.c586 exit_status = list_caches(kcc_context); in klist()
596 ret = krb5_cc_cache_get_first(kcc_context, NULL, &cursor); in klist()
598 krb5_err(kcc_context, 1, ret, "krb5_cc_cache_get_first"); in klist()
601 while (krb5_cc_cache_next(kcc_context, cursor, &id) == 0) { in klist()
602 exit_status |= display_v5_ccache(kcc_context, id, do_test, in klist()
607 krb5_cc_cache_end_seq_get(kcc_context, cursor); in klist()
611 ret = krb5_cc_resolve(kcc_context, opt->cache_string, &id); in klist()
613 krb5_err(kcc_context, 1, ret, "%s", opt->cache_string); in klist()
615 ret = krb5_cc_default(kcc_context, &id); in klist()
617 krb5_err(kcc_context, 1, ret, "krb5_cc_resolve"); in klist()
[all …]
H A Dkuser_locl.h106 extern krb5_context kcc_context;