mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
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:
parent
bb07240263
commit
c09466abff
12 changed files with 0 additions and 56 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue