GNURLOPT_EGDSOCKET(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’… 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_OK if TLS is supported.
  • Returns CURLE_UNKNOWN_OPTION if not.
  • Returns CURLE_OUT_OF_MEMORY if there was insufficient heap space. 😭

🫢 SEE ALSO


okay bye bestie β€” this page is from libcurl 7.37.0, dated 17 Jun 2014. πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from