1CURLOPT_EGDSOCKET(3) curl_easy_setopt options CURLOPT_EGDSOCKET(3)
2
3
4
6 CURLOPT_EGDSOCKET - set EGD socket path
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_EGDSOCKET, char *path);
12
14 Pass a char * to the zero terminated path name to the Entropy Gathering
15 Daemon socket. It will be used to seed the random engine for SSL.
16
17 The application does not have to keep the string around after setting
18 this option.
19
21 NULL
22
24 All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
25
27 CURL *curl = curl_easy_init();
28 if(curl) {
29 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
30 curl_easy_setopt(curl, CURLOPT_EGDSOCKET, "/var/egd.socket");
31 ret = curl_easy_perform(curl);
32 curl_easy_cleanup(curl);
33 }
34
36 If built TLS enabled. Only the OpenSSL and GnuTLS backends will use
37 this.
38
40 Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if not, or
41 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
42
44 CURLOPT_RANDOM_FILE(3),
45
46
47
48libcurl 7.61.1 May 31, 2017 CURLOPT_EGDSOCKET(3)