aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream-ssl.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-31 01:20:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-31 01:20:39 +0800
commitd53fdf3ae9d8c67f676475fe4480188df4045320 (patch)
tree92990f92a6e2e90f26b5af1ab06655c86ec87380 /camel/camel-tcp-stream-ssl.c
parent0f1d708cc00fd0b31f9515685f66a6626dce944e (diff)
downloadgsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar.gz
gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar.zst
gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.zip
#include pk11func.h. (ssl_bad_cert): Use CERT_GetDefaultCertDB.
2001-08-30 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-ssl.c: #include pk11func.h. (ssl_bad_cert): Use CERT_GetDefaultCertDB. svn path=/trunk/; revision=12530
Diffstat (limited to 'camel/camel-tcp-stream-ssl.c')
-rw-r--r--camel/camel-tcp-stream-ssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-tcp-stream-ssl.c b/camel/camel-tcp-stream-ssl.c
index ac0edea31e..f63e043002 100644
--- a/camel/camel-tcp-stream-ssl.c
+++ b/camel/camel-tcp-stream-ssl.c
@@ -40,6 +40,7 @@
#include <ssl.h>
#include <cert.h>
#include <certdb.h>
+#include <pk11func.h>
#include "camel-tcp-stream-ssl.h"
#include "camel-session.h"
@@ -386,7 +387,7 @@ ssl_bad_cert (void *data, PRFileDesc *sockfd)
trust = PORT_ZAlloc (sizeof (CERTCertTrust));
trust->sslFlags = CERTDB_TRUSTED_CA | CERTDB_VALID_CA;
- temp = CERT_NewTempCertificate (ssl->priv->certdb, &cert->derCert, NULL, PR_FALSE, PR_TRUE);
+ temp = CERT_NewTempCertificate (CERT_GetDefaultCertDB (), &cert->derCert, NULL, PR_FALSE, PR_TRUE);
CERT_AddTempCertToPerm (temp, nickname, trust);