From f2fd1b8856559ef9a8dfb2d996fa452e4ee6f41a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Mar 2001 15:47:17 +0000 Subject: two new random seed options: CURLOPT_RANDOM_FILE and CURLOPT_EGDSOCKET --- lib/url.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 802a5d2d4..3194cbe20 100644 --- a/lib/url.c +++ b/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 -- cgit v1.2.3