sssd/0011-krb5-Remove-unused-function.patch

70 lines
2.1 KiB
Diff
Raw Normal View History

From 0dbcc64a5cee58d5fffaaef923302d9c7a951a7d Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Fri, 30 Aug 2013 20:55:38 -0400
Subject: [PATCH 11/14] krb5: Remove unused function
Related:
https://fedorahosted.org/sssd/ticket/2061
---
src/util/sss_krb5.c | 30 ------------------------------
src/util/sss_krb5.h | 2 --
2 files changed, 32 deletions(-)
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index 440edab8a4624b33b7d358e64ead93949fc3de88..d4fee42a0297d5bb46135669a5fc12857ea95936 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -921,36 +921,6 @@ sss_krb5_residual_by_type(const char *full_location,
}
const char *
-sss_krb5_cc_file_path(const char *full_location)
-{
- enum sss_krb5_cc_type cc_type;
- const char *residual;
-
- cc_type = sss_krb5_get_type(full_location);
- residual = sss_krb5_residual_by_type(full_location, cc_type);
-
- switch(cc_type) {
-#ifdef HAVE_KRB5_CC_COLLECTION
- case SSS_KRB5_TYPE_KEYRING:
-#endif /* HAVE_KRB5_CC_COLLECTION */
- case SSS_KRB5_TYPE_FILE:
- return residual;
-#ifdef HAVE_KRB5_CC_COLLECTION
- case SSS_KRB5_TYPE_DIR:
- /* DIR::/run/user/tkt_foo */
- if (residual[0] == ':') {
- ++residual;
- }
- return residual;
-#endif /* HAVE_KRB5_CC_COLLECTION */
- case SSS_KRB5_TYPE_UNKNOWN:
- break;
- }
-
- return NULL;
-}
-
-const char *
sss_krb5_residual_check_type(const char *full_location,
enum sss_krb5_cc_type expected_type)
{
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index aaf2a64882254ba173fb57c5dab47d246082392c..efde48b62170a142ebfca907013c3558ec47f428 100644
--- a/src/util/sss_krb5.h
+++ b/src/util/sss_krb5.h
@@ -154,8 +154,6 @@ 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);
--
1.8.3.1