From d53fdf3ae9d8c67f676475fe4480188df4045320 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 30 Aug 2001 17:20:39 +0000 Subject: #include pk11func.h. (ssl_bad_cert): Use CERT_GetDefaultCertDB. 2001-08-30 Jeffrey Stedfast * camel-tcp-stream-ssl.c: #include pk11func.h. (ssl_bad_cert): Use CERT_GetDefaultCertDB. svn path=/trunk/; revision=12530 --- camel/ChangeLog | 5 +++++ camel/camel-tcp-stream-ssl.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 83abccbe9e..123f440f7d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-08-30 Jeffrey Stedfast + + * camel-tcp-stream-ssl.c: #include pk11func.h. + (ssl_bad_cert): Use CERT_GetDefaultCertDB. + 2001-08-29 Jeffrey Stedfast * camel-smime-context.c (smime_sign_prepare): Do the same here as 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 #include #include +#include #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); -- cgit v1.2.3