1CURLOPT_EGDSOCKET(3)       curl_easy_setopt options       CURLOPT_EGDSOCKET(3)
2
3
4

NAME

6       CURLOPT_EGDSOCKET - EGD socket path
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_EGDSOCKET, char *path);
12

DESCRIPTION

14       Deprecated option. It serves no purpose anymore.
15
16       Pass a char * to the null-terminated path name to the Entropy Gathering
17       Daemon socket. It will be used to seed the random engine for TLS.
18
19       The application does not have to keep the string around  after  setting
20       this option.
21

DEFAULT

23       NULL
24

PROTOCOLS

26       All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
27

EXAMPLE

29       CURL *curl = curl_easy_init();
30       if(curl) {
31         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
32         curl_easy_setopt(curl, CURLOPT_EGDSOCKET, "/var/egd.socket");
33         ret = curl_easy_perform(curl);
34         curl_easy_cleanup(curl);
35       }
36

AVAILABILITY

38       If  built with TLS enabled. Only the OpenSSL backend will use this, and
39       only with OpenSSL versions before 1.1.0.
40
41       This option was deprecated in 7.84.0.
42

RETURN VALUE

44       Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if  not,  or
45       CURLE_OUT_OF_MEMORY if there was insufficient heap space.
46

SEE ALSO

48       CURLOPT_RANDOM_FILE(3),
49
50
51
52libcurl 7.85.0                   May 17, 2022             CURLOPT_EGDSOCKET(3)
Impressum