aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-cert-db.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-01-30 19:50:47 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-01-30 19:50:47 +0800
commit1c0c36fc8fd05091cef3297c1ce6841d90536b5e (patch)
treea84a8055135ae55532cec85f1723f14f305e1116 /smime/lib/e-cert-db.c
parent1e5de972e60c9e693a87c0c5e899c64f930d75cb (diff)
downloadgsoc2013-evolution-1c0c36fc8fd05091cef3297c1ce6841d90536b5e.tar.gz
gsoc2013-evolution-1c0c36fc8fd05091cef3297c1ce6841d90536b5e.tar.zst
gsoc2013-evolution-1c0c36fc8fd05091cef3297c1ce6841d90536b5e.zip
Remove unused code. Use #ifdef instead of #if some places. Add missing
2006-01-29 Kjartan Maraas <kmaraas@gnome.org> * gui/cert-trust-dialog.c: (ctd_response): * gui/certificate-viewer.c: (fill_in_general): * gui/component.c: * lib/e-cert-db.c: (initialize_nss), (default_nickname): * lib/e-cert-db.h: * lib/e-cert.c: (create_tbs_certificate_asn1_struct): * lib/e-pkcs12.c: (import_from_file_helper): Remove unused code. Use #ifdef instead of #if some places. Add missing header. svn path=/trunk/; revision=31368
Diffstat (limited to 'smime/lib/e-cert-db.c')
-rw-r--r--smime/lib/e-cert-db.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index 5e25c7cd0c..ea8e76ab36 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -133,7 +133,7 @@ e_cert_db_dispose (GObject *object)
G_OBJECT_CLASS (parent_class)->dispose (object);
}
-#if notyet
+#ifdef notyet
PRBool
ucs2_ascii_conversion_fn (PRBool toUnicode,
unsigned char *inBuf,
@@ -210,7 +210,7 @@ initialize_nss (void)
SEC_PKCS12EnableCipher(PKCS12_DES_56, 1);
SEC_PKCS12EnableCipher(PKCS12_DES_EDE3_168, 1);
SEC_PKCS12SetPreferredCipher(PKCS12_DES_EDE3_168, 1);
-#if notyet
+#ifdef notyet
PORT_SetUCS2_ASCIIConversionFunction(ucs2_ascii_conversion_fn);
#endif
}
@@ -426,7 +426,7 @@ e_cert_db_find_cert_by_nickname (ECertDB *certdb,
}
}
-#if notyet
+#ifdef notyet
ECert*
e_cert_db_find_cert_by_key (ECertDB *certdb,
const char *db_key,
@@ -876,7 +876,7 @@ default_nickname (CERTCertificate *cert)
char *nickname = NULL;
char *tmp = NULL;
int count;
- char *nickFmt=NULL, *nickFmtWithNum = NULL;
+ char *nickFmt=NULL;
CERTCertificate *dummycert;
PK11SlotInfo *slot=NULL;
CK_OBJECT_HANDLE keyHandle;
@@ -900,7 +900,6 @@ default_nickname (CERTCertificate *cert)
count = 1;
nickFmt = "%1$s's %2$s ID";
- nickFmtWithNum = "%1$s's %2$s ID #%3$d";
nickname = PR_smprintf(nickFmt, username, caname);
/*
@@ -1175,7 +1174,7 @@ e_cert_db_import_pkcs12_file (ECertDB *cert_db,
return TRUE;
}
-#if notyet
+#ifdef notyet
gboolean
e_cert_db_export_pkcs12_file (ECertDB *cert_db,
const char *file_path,