diff options
-rw-r--r-- | smime/lib/e-cert-db.c | 43 | ||||
-rw-r--r-- | 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 3cb87c0010..d9c3813efb 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 5e4af31888..66a98797b2 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); |