aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-09-25 02:24:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-09-25 04:35:47 +0800
commit0401fdb3e8b6f1bbaed778f6a69ae00367255034 (patch)
tree494cd2be9b3899b93729a8652f671185d8479104
parent3d23a1a4505cf39a6a57f67e79f00300cbfe7ab0 (diff)
downloadgsoc2013-evolution-0401fdb3e8b6f1bbaed778f6a69ae00367255034.tar.gz
gsoc2013-evolution-0401fdb3e8b6f1bbaed778f6a69ae00367255034.tar.zst
gsoc2013-evolution-0401fdb3e8b6f1bbaed778f6a69ae00367255034.zip
Remove unused e_cert_get_issuers_chain().
-rw-r--r--smime/lib/e-cert.c28
-rw-r--r--smime/lib/e-cert.h2
2 files changed, 0 insertions, 30 deletions
diff --git a/smime/lib/e-cert.c b/smime/lib/e-cert.c
index d188c6869a..55f35f8858 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 83e0acd179..09c71c2f3f 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);