two new random seed options: CURLOPT_RANDOM_FILE and CURLOPT_EGDSOCKET

This commit is contained in:
Daniel Stenberg 2001-03-12 15:47:17 +00:00
parent cb4efcf275
commit f2fd1b8856
3 changed files with 54 additions and 19 deletions

View file

@ -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