summaryrefslogtreecommitdiffstats
path: root/src/util/sss_krb5.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-17 13:49:30 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-14 15:52:29 -0400
commitf674270b1068e4ad51c80dcd528ae996a4fe99ef (patch)
tree09eb3ec1800de9016e72aaee786af173047f7173 /src/util/sss_krb5.h
parentf232789430a080384188d5da89b19d874cf17513 (diff)
downloadsssd-f674270b1068e4ad51c80dcd528ae996a4fe99ef.tar.gz
sssd-f674270b1068e4ad51c80dcd528ae996a4fe99ef.tar.xz
sssd-f674270b1068e4ad51c80dcd528ae996a4fe99ef.zip
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.
Diffstat (limited to 'src/util/sss_krb5.h')
-rw-r--r--src/util/sss_krb5.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index 12412585f..bba2a7eda 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,