mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
two new random seed options: CURLOPT_RANDOM_FILE and CURLOPT_EGDSOCKET
This commit is contained in:
parent
cb4efcf275
commit
f2fd1b8856
3 changed files with 54 additions and 19 deletions
13
lib/url.c
13
lib/url.c
|
|
@ -250,6 +250,19 @@ CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
|
|||
va_start(param, option);
|
||||
|
||||
switch(option) {
|
||||
case CURLOPT_RANDOM_FILE:
|
||||
/*
|
||||
* This is the path name to a file that contains random data to seed
|
||||
* the random SSL stuff with. The file is only used for reading.
|
||||
*/
|
||||
data->ssl.random_file = va_arg(param, char *);
|
||||
break;
|
||||
case CURLOPT_EGDSOCKET:
|
||||
/*
|
||||
* The Entropy Gathering Daemon socket pathname
|
||||
*/
|
||||
data->ssl.egdsocket = va_arg(param, char *);
|
||||
break;
|
||||
case CURLOPT_MAXCONNECTS:
|
||||
/*
|
||||
* Set the absolute number of maximum simultaneous alive connection that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue