diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-09-25 09:44:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-09-25 10:02:33 +0800 |
commit | 86bcbbe5bf9da06a9d52172b9e478bca56bc6b15 (patch) | |
tree | b402fa2975c8508fb58b0dfb5c63e745d4ada403 | |
parent | de520f496c30b84c8c4341bc3e21cc46335739f6 (diff) | |
download | gsoc2013-evolution-86bcbbe5bf9da06a9d52172b9e478bca56bc6b15.tar.gz gsoc2013-evolution-86bcbbe5bf9da06a9d52172b9e478bca56bc6b15.tar.zst gsoc2013-evolution-86bcbbe5bf9da06a9d52172b9e478bca56bc6b15.zip |
Remove unused e_cert_db_find_cert_by_key().
-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); |