diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-31 01:20:39 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-31 01:20:39 +0800 |
commit | d53fdf3ae9d8c67f676475fe4480188df4045320 (patch) | |
tree | 92990f92a6e2e90f26b5af1ab06655c86ec87380 | |
parent | 0f1d708cc00fd0b31f9515685f66a6626dce944e (diff) | |
download | gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar.gz gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar.bz2 gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar.lz gsoc2013-evolution-d53fdf3ae9d8c67f676475fe4480188df4045320.tar.xz 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
-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); |