From f674270b1068e4ad51c80dcd528ae996a4fe99ef Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 17 May 2012 13:49:30 +0200 Subject: Residual util functions Kerberos credential caches can be specified by TYPE:RESIDUAL. This patch adds a couple of utilities to support parsing if ccache locations, checking types etc. --- src/util/sss_krb5.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/util/sss_krb5.h') diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h index 12412585..bba2a7ed 100644 --- a/src/util/sss_krb5.h +++ b/src/util/sss_krb5.h @@ -122,6 +122,22 @@ sss_krb5_unparse_name_flags(krb5_context context, krb5_const_principal principal void sss_krb5_get_init_creds_opt_set_canonicalize(krb5_get_init_creds_opt *opts, int canonicalize); +enum sss_krb5_cc_type { + SSS_KRB5_TYPE_FILE, + SSS_KRB5_TYPE_DIR, + SSS_KRB5_TYPE_UNKNOWN +}; + +enum sss_krb5_cc_type +sss_krb5_get_type(const char *full_location); +const char * +sss_krb5_residual_by_type(const char *full_location, enum sss_krb5_cc_type type); +const char * +sss_krb5_cc_file_path(const char *full_location); +const char * +sss_krb5_residual_check_type(const char *full_location, + enum sss_krb5_cc_type expected_type); + /* === Compatibility routines for the Heimdal Kerberos implementation === */ void sss_krb5_princ_realm(krb5_context context, krb5_const_principal princ, -- cgit