diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-tcp-stream-ssl.c | 3 |
2 files changed, 7 insertions, 1 deletions
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 <fejj@ximian.com> + + * camel-tcp-stream-ssl.c: #include pk11func.h. + (ssl_bad_cert): Use CERT_GetDefaultCertDB. + 2001-08-29 Jeffrey Stedfast <fejj@ximian.com> * 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 <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); |