aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream-ssl.c
diff options
context:
space:
mode:
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);