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

Initialize openssl-probe env vars if curl requires init #418

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

alexcrichton
Copy link
Owner

This commit should fix an issue that showed up in rust-lang/cargo#10013
where curl's initialization was accidentally detecting that curl needed
an early initialization (due to sfackler/rust-openssl#1548). This early
initialization caused the later env-vars set by openssl-probe to not
actually be read since OpenSSL was already initialized. While not an
issue for curl I think it does pose an issue for other libraries like
libgit2 using OpenSSL.

The fix here is to initialize the env vars before OpenSSL, which should
have OpenSSL pick up the probe results.

This commit should fix an issue that showed up in rust-lang/cargo#10013
where curl's initialization was accidentally detecting that curl needed
an early initialization (due to sfackler/rust-openssl#1548). This early
initialization caused the later env-vars set by `openssl-probe` to not
actually be read since OpenSSL was already initialized. While not an
issue for `curl` I think it does pose an issue for other libraries like
libgit2 using OpenSSL.

The fix here is to initialize the env vars before OpenSSL, which should
have OpenSSL pick up the probe results.
@alexcrichton alexcrichton merged commit 142ee96 into master Nov 2, 2021
@alexcrichton alexcrichton deleted the fix-openssl-env-init branch November 2, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants