Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

egd: delete feature detection and related source code #11556

Closed
wants to merge 5 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Jul 31, 2023

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

@vszakats
Copy link
Member Author

Managed to fix this as a side-effect of adding SSL_set0_wbio detection in #11555, but it's probably best to delete it anyway, since nobody missed this for all these years.

Because OpenSSL libs are not linked at this point.

The feature could still be (probably) force-enabled manually by setting
`EGD_SOCKET` and `HAVE_RAND_EGD`, and using a sufficiently obsolete
OpenSSL version.

Closes #xxxxx
@vszakats vszakats changed the title cmake: delete broken HAVE_RAND_EGD detection cmake: delete long-broken HAVE_RAND_EGD detection Aug 1, 2023
@vszakats vszakats requested a review from bagder August 1, 2023 09:17
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I think there are a few more traces of RAND_EGD you can wipe out while at it:

$ git grep -l RAND_EGD  | wc -l
10

@vszakats
Copy link
Member Author

vszakats commented Aug 1, 2023

autotools detects RAND_egd() (correctly, I assumed) in m4/curl-openssl.m4, so did not want to touch it, but might make sense.

Do we want to also delete autotools detections bits? and the actual use inside vtls/openssl.c, too?

@bagder
Copy link
Member

bagder commented Aug 1, 2023

Do we want to also delete autotools detections bits? and the actual use inside vtls/openssl.c, too?

Yes let's do that. I think that was only for OpenSSL before 1.1 and already then I believe very few actually used this.

@vszakats vszakats changed the title cmake: delete long-broken HAVE_RAND_EGD detection egd: delete feature detection and related source code Aug 1, 2023
@vszakats vszakats closed this in c09466a Aug 1, 2023
@vszakats vszakats deleted the del-rand-egd branch August 1, 2023 21:59
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
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 curl#11556
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants