mirror of
https://github.com/curl/curl.git
synced 2026-07-31 04:28:04 +03:00
Kjetil Jacobsen's patch that introduces CURLOPT_PRIVATE and CURLINFO_PRIVATE
for storage and retrieval of private data in the curl handle.
This commit is contained in:
parent
f68505ee23
commit
8bca5e05b8
6 changed files with 29 additions and 2 deletions
|
|
@ -1088,6 +1088,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||
data->set.proxytype = va_arg(param, long);
|
||||
break;
|
||||
|
||||
case CURLOPT_PRIVATE:
|
||||
/*
|
||||
* Set private data pointer.
|
||||
*/
|
||||
data->set.private = va_arg(param, char *);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* unknown tag and its companion, just ignore: */
|
||||
return CURLE_FAILED_INIT; /* correct this */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue