1CURLOPT_EGDSOCKET(3) curl_easy_setopt options CURLOPT_EGDSOCKET(3)
2
3
4
6 CURLOPT_EGDSOCKET - 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 null-terminated path name to the Entropy Gathering
15 Daemon socket. It will be used to seed the random engine for TLS.
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 with TLS enabled. Only the OpenSSL backend will use this.
37
39 Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if not, or
40 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
41
43 CURLOPT_RANDOM_FILE(3),
44
45
46
47libcurl 7.79.1 September 08, 2021 CURLOPT_EGDSOCKET(3)