[evolution] Remove unused e_cert_get_issuers_chain().



commit 0401fdb3e8b6f1bbaed778f6a69ae00367255034
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Sep 24 14:24:42 2013 -0400

    Remove unused e_cert_get_issuers_chain().

 smime/lib/e-cert.c |   28 ----------------------------
 smime/lib/e-cert.h |    2 --
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/smime/lib/e-cert.c b/smime/lib/e-cert.c
index d188c68..55f35f8 100644
--- a/smime/lib/e-cert.c
+++ b/smime/lib/e-cert.c
@@ -446,34 +446,6 @@ e_cert_get_md5_fingerprint (ECert *cert)
        return cert->priv->md5_fingerprint;
 }
 
-GList *
-e_cert_get_issuers_chain (ECert *ecert)
-{
-       GList *issuers = NULL;
-
-       while (ecert) {
-               CERTCertificate *cert = e_cert_get_internal_cert (ecert);
-               CERTCertificate *next_cert;
-
-               if (SECITEM_CompareItem (&cert->derIssuer, &cert->derSubject) == SECEqual)
-                       break;
-
-               next_cert = CERT_FindCertIssuer (cert, PR_Now (), certUsageSSLClient);
-               if (!next_cert)
-                       break;
-
-               /* next_cert has a reference already */
-               ecert = e_cert_new (next_cert);
-
-               if (ecert) {
-                       /* the first is issuer of the original ecert */
-                       issuers = g_list_append (issuers, ecert);
-               }
-       }
-
-       return issuers;
-}
-
 ECert *
 e_cert_get_ca_cert (ECert *ecert)
 {
diff --git a/smime/lib/e-cert.h b/smime/lib/e-cert.h
index 83e0acd..09c71c2 100644
--- a/smime/lib/e-cert.h
+++ b/smime/lib/e-cert.h
@@ -84,7 +84,6 @@ const gchar *          e_cert_get_issuer_org      (ECert *cert);
 const gchar *          e_cert_get_issuer_org_unit (ECert *cert);
 
 const gchar *          e_cert_get_issued_on       (ECert *cert);
-PRTime               e_cert_get_expires_on_time (ECert *cert);
 const gchar *          e_cert_get_expires_on      (ECert *cert);
 const gchar *       e_cert_get_usage (ECert *cert);
 
@@ -92,7 +91,6 @@ const gchar *          e_cert_get_serial_number    (ECert *cert);
 const gchar *          e_cert_get_sha1_fingerprint (ECert *cert);
 const gchar *          e_cert_get_md5_fingerprint  (ECert *cert);
 
-GList *               e_cert_get_issuers_chain     (ECert *cert);
 ECert *              e_cert_get_ca_cert     (ECert *ecert);
 
 gboolean             e_cert_mark_for_deletion (ECert *cert);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]