summaryrefslogtreecommitdiff
path: root/lib/share.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-12-05 23:59:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-12-05 23:59:32 +0000
commitac269a8f68323db6b579f11f864035bc2691081d (patch)
tree5bc2116fe477a0b7b01a07331413ba61d8e7306b /lib/share.c
parent35944744f84f8127529b315951946416fa592a7c (diff)
downloadcurl-ac269a8f68323db6b579f11f864035bc2691081d.tar.gz
Dan Fandrich added the --disable-cookies option to configure to build
libcurl without cookie support. This is mainly useful if you want to build a minimalistic libcurl with no cookies support at all. Like for embedded systems or similar.
Diffstat (limited to 'lib/share.c')
-rw-r--r--lib/share.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/share.c b/lib/share.c
index 5c01845df..de13b6021 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -77,7 +77,7 @@ curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
}
break;
-#ifndef CURL_DISABLE_HTTP
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
case CURL_LOCK_DATA_COOKIE:
if (!share->cookies) {
share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE );
@@ -108,7 +108,7 @@ curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
}
break;
-#ifndef CURL_DISABLE_HTTP
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
case CURL_LOCK_DATA_COOKIE:
if (share->cookies) {
Curl_cookie_cleanup(share->cookies);
@@ -171,7 +171,7 @@ curl_share_cleanup(CURLSH *sh)
if(share->hostcache)
Curl_hash_destroy(share->hostcache);
-#ifndef CURL_DISABLE_HTTP
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
if(share->cookies)
Curl_cookie_cleanup(share->cookies);
#endif /* CURL_DISABLE_HTTP */