summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-04-13 17:42:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-04-13 17:42:10 +0000
commit235c0077b8648a3b941090991a0ce6ac24d681ab (patch)
tree01fbe7a0e07cdb610040525d6c8f3f7a2c326c7e /lib/urldata.h
parentc621546bd608d5f836d165c2a33ff3d37e2e21e5 (diff)
downloadcurl-235c0077b8648a3b941090991a0ce6ac24d681ab.tar.gz
- Toshio Kuratomi reported a memory leak problem with libcurl+NSS that turned
out to be leaking cacerts. Kamil Dudka helped me complete the fix. The issue is found in Redhat's bug tracker: https://bugzilla.redhat.com/show_bug.cgi?id=453612 There are still memory leaks present, but they seem to have other reasons.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index a50ede005..60742e5b9 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -93,6 +93,7 @@
#ifdef USE_NSS
#include <nspr.h>
+#include <pk11pub.h>
#endif
#ifdef USE_QSOSSL
@@ -210,6 +211,10 @@ struct ssl_connect_data {
#ifdef USE_NSS
PRFileDesc *handle;
char *client_nickname;
+#ifdef HAVE_PK11_CREATEGENERICOBJECT
+ PK11GenericObject *key;
+ PK11GenericObject *cacert[2];
+#endif
#endif /* USE_NSS */
#ifdef USE_QSOSSL
SSLHandle *handle;