aboutsummaryrefslogtreecommitdiff
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-20 19:11:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-20 19:11:22 +0000
commit8bca5e05b8e96bbfaaef9cc8dcecc33ce7ef6a15 (patch)
treefe24e8525de7d67e07efcef122d3842e68e1e111 /lib/getinfo.c
parentf68505ee23d37afa31d908e146beab33935b7eed (diff)
Kjetil Jacobsen's patch that introduces CURLOPT_PRIVATE and CURLINFO_PRIVATE
for storage and retrieval of private data in the curl handle.
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 01d6dda85..009a3c10a 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -158,6 +158,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
case CURLINFO_CONTENT_TYPE:
*param_charp = data->info.contenttype;
break;
+ case CURLINFO_PRIVATE:
+ *param_charp = data->set.private?data->set.private:(char *)"";
+ break;
default:
return CURLE_BAD_FUNCTION_ARGUMENT;
}