[evolution] Remove unused e_cert_db_find_cert_by_key().



commit 86bcbbe5bf9da06a9d52172b9e478bca56bc6b15
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Sep 24 21:44:05 2013 -0400

    Remove unused e_cert_db_find_cert_by_key().

 smime/lib/e-cert-db.c |   43 -------------------------------------------
 smime/lib/e-cert-db.h |    4 ----
 2 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index 3cb87c0..d9c3813 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -587,49 +587,6 @@ e_cert_db_shutdown (void)
 }
 
 #ifdef notyet
-ECert *
-e_cert_db_find_cert_by_key (ECertDB *certdb,
-                            const gchar *db_key,
-                            GError **error)
-{
-       /*  nsNSSShutDownPreventionLock locker;*/
-       SECItem keyItem = {siBuffer, NULL, 0};
-       SECItem *dummy;
-       CERTIssuerAndSN issuerSN;
-       gulong moduleID,slotID;
-       CERTCertificate *cert;
-
-       if (!db_key) {
-               set_nss_error (error);
-               return NULL;
-       }
-
-       dummy = NSSBase64_DecodeBuffer (
-               NULL, &keyItem, db_key,
-               (PRUint32) PL_strlen (db_key));
-
-       /* someday maybe we can speed up the search using the moduleID and slotID*/
-       moduleID = NS_NSS_GET_LONG (keyItem.data);
-       slotID = NS_NSS_GET_LONG (&keyItem.data[NS_NSS_LONG]);
-
-       /* build the issuer/SN structure*/
-       issuerSN.serialNumber.len = NS_NSS_GET_LONG (&keyItem.data[NS_NSS_LONG *2]);
-       issuerSN.derIssuer.len = NS_NSS_GET_LONG (&keyItem.data[NS_NSS_LONG *3]);
-       issuerSN.serialNumber.data= &keyItem.data[NS_NSS_LONG *4];
-       issuerSN.derIssuer.data= &keyItem.data[NS_NSS_LONG *4+
-                                              issuerSN.serialNumber.len];
-
-       cert = CERT_FindCertByIssuerAndSN (CERT_GetDefaultCertDB (), &issuerSN);
-       PR_FREEIF (keyItem.data);
-       if (cert) {
-               ECert *ecert = e_cert_new (cert);
-               return e_cert;
-       }
-
-       set_nss_error (error);
-       return NULL;
-}
-
 GList *
 e_cert_db_get_cert_nicknames (ECertDB *certdb,
                               ECertType cert_type,
diff --git a/smime/lib/e-cert-db.h b/smime/lib/e-cert-db.h
index 5e4af31..66a9879 100644
--- a/smime/lib/e-cert-db.h
+++ b/smime/lib/e-cert-db.h
@@ -71,10 +71,6 @@ ECertDB *             e_cert_db_peek         (void);
 void                 e_cert_db_shutdown     (void);
 
 #ifdef notyet
-ECert *               e_cert_db_find_cert_by_key      (ECertDB *certdb,
-                                                     const gchar *db_key,
-                                                     GError **error);
-
 GList *               e_cert_db_get_cert_nicknames    (ECertDB *certdb,
                                                      ECertType cert_type,
                                                      GError **error);


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