egd: delete feature detection and related source code

EGD is Entropy Gathering Daemon, a socket-based entropy source supported
by pre-OpenSSL v1.1 versions and now deprecated. curl also deprecated it
a while ago.

Its detection in CMake was broken all along because OpenSSL libs were
not linked at the point of feature check.

Delete detection from both cmake and autotools, along with the related
source snippet, and the `--with-egd-socket=` `./configure` option.

Closes #11556
This commit is contained in:
Viktor Szakats 2023-07-31 11:52:44 +00:00
parent bb07240263
commit c09466abff
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
12 changed files with 0 additions and 56 deletions

View file

@ -996,20 +996,6 @@ static CURLcode ossl_seed(struct Curl_easy *data)
return CURLE_OK;
#endif
#if defined(HAVE_RAND_EGD) && defined(EGD_SOCKET)
/* available in OpenSSL 0.9.5 and later */
/* EGD_SOCKET is set at configure time or not at all */
{
/* If there's an option and a define, the option overrides the
define */
int ret = RAND_egd(EGD_SOCKET);
if(-1 != ret) {
if(rand_enough())
return CURLE_OK;
}
}
#endif
/* fallback to a custom seeding of the PRNG using a hash based on a current
time */
do {