GNURLOPT_EGDSOCKET(3)
π GNURLOPT_EGDSOCKET(3) β set EGD socket path
okay so this is from the gnurl manual, section 3, and itβs literally about telling TLS where the Entropy Gathering Daemon socket lives. bestie, itβs giving βrandom seed but make it socket path.β β¨
πΈ NAME
CURLOPT_EGDSOCKET β set EGD socket path π
β¨ SYNOPSIS
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_EGDSOCKET, char *path);
π DESCRIPTION
Pass a char * to the null-terminated path name to the Entropy Gathering Daemon socket. It will be used to seed the random engine for SSL. slay π₯
The application does not have to keep the string around after setting this option. So yes, you can let it go after you set it β no clingy string energy required. π¦
π DEFAULT
NULL
π§ PROTOCOLS
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. π
π EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_EGDSOCKET, "/var/egd.socket");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π AVAILABILITY
If built TLS enabled. Only the OpenSSL and GnuTLS backends will use this. no cap π₯
π RETURN VALUE
- Returns
CURLE_OKif TLS is supported. - Returns
CURLE_UNKNOWN_OPTIONif not. - Returns
CURLE_OUT_OF_MEMORYif there was insufficient heap space. π
π«Ά SEE ALSO
CURLOPT_RANDOM_FILE(3),β yep, thatβs the SEE ALSO bestie π
okay bye bestie β this page is from libcurl 7.37.0, dated 17 Jun 2014. π«Άπβ¨
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms