aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-12 15:47:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-12 15:47:17 +0000
commitf2fd1b8856559ef9a8dfb2d996fa452e4ee6f41a (patch)
treed30a9a957a81b43916444134af99d7de9b5a07db /lib/url.c
parentcb4efcf275fd2acb60fbd0978a3322c65c536704 (diff)
two new random seed options: CURLOPT_RANDOM_FILE and CURLOPT_EGDSOCKET
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c13
1 files changed, 13 insertions, 0 deletions
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