aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib
diff options
context:
space:
mode:
Diffstat (limited to 'smime/lib')
-rw-r--r--smime/lib/e-cert-db.c26
-rw-r--r--smime/lib/e-cert-db.h5
2 files changed, 0 insertions, 31 deletions
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index bb4a68e61d..3cb87c0010 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -586,32 +586,6 @@ e_cert_db_shutdown (void)
/* XXX */
}
-/* searching for certificates */
-ECert *
-e_cert_db_find_cert_by_nickname (ECertDB *certdb,
- const gchar *nickname,
- GError **error)
-{
- /* nsNSSShutDownPreventionLock locker;*/
- CERTCertificate *cert = NULL;
-
- /*PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("Getting \"%s\"\n", asciiname));*/
- cert = PK11_FindCertFromNickname ((gchar *) nickname, NULL);
- if (!cert) {
- cert = CERT_FindCertByNickname (CERT_GetDefaultCertDB (), (gchar *) nickname);
- }
-
- if (cert) {
- /* PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("got it\n"));*/
- ECert *ecert = e_cert_new (cert);
- return ecert;
- }
- else {
- set_nss_error (error);
- return NULL;
- }
-}
-
#ifdef notyet
ECert *
e_cert_db_find_cert_by_key (ECertDB *certdb,
diff --git a/smime/lib/e-cert-db.h b/smime/lib/e-cert-db.h
index 26d0a25c2a..5e4af31888 100644
--- a/smime/lib/e-cert-db.h
+++ b/smime/lib/e-cert-db.h
@@ -70,11 +70,6 @@ ECertDB * e_cert_db_peek (void);
void e_cert_db_shutdown (void);
-/* searching for certificates */
-ECert * e_cert_db_find_cert_by_nickname (ECertDB *certdb,
- const gchar *nickname,
- GError **error);
-
#ifdef notyet
ECert * e_cert_db_find_cert_by_key (ECertDB *certdb,
const gchar *db_key,