summaryrefslogtreecommitdiff
path: root/lib/share.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-10-03 22:32:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-10-03 22:35:04 +0200
commit15e3e451702396e870c00d186ff7710792a1f28e (patch)
tree34e35da4099da75a29062735548773692d354d09 /lib/share.h
parent9dd85bced56f6951107f69e581c872c1e7e3e58e (diff)
downloadcurl-15e3e451702396e870c00d186ff7710792a1f28e.tar.gz
share: don't use SSL unless enabled
Don't even declare the struct members for disabled features Introducing the CURLSHE_NOT_BUILT_IN return code for the share interface when trying to set a sharing option that has been disabled (or not enabled) in the library.
Diffstat (limited to 'lib/share.h')
-rw-r--r--lib/share.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/share.h b/lib/share.h
index cf200008f..cb5c6c7f3 100644
--- a/lib/share.h
+++ b/lib/share.h
@@ -8,7 +8,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -46,9 +46,13 @@ struct Curl_share {
void *clientdata;
struct curl_hash *hostcache;
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
struct CookieInfo *cookies;
+#endif
+#ifdef USE_SSL
struct curl_ssl_session *sslsession;
+#endif
unsigned int nsslsession;
};