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

requires openssl minimum version 1.1.0 #7775

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

aldenml
Copy link
Contributor

@aldenml aldenml commented Oct 28, 2024

Hi @arvidn, this fixes a compilation for Android with latest openssl.

@arvidn
Copy link
Owner

arvidn commented Oct 28, 2024

was OPENSSL_VERSION_NUMBER not set correctly?
which part of this is the fix?

@aldenml
Copy link
Contributor Author

aldenml commented Oct 28, 2024

was OPENSSL_VERSION_NUMBER not set correctly? which part of this is the fix?

The macro OPENSSL_API_COMPAT is not set, and was failing to compile ssl.cpp. I could "fix" only that, but I think removing support for < 1.0 is a good idea. What do you think?

@aldenml
Copy link
Contributor Author

aldenml commented Oct 28, 2024

hmmm... I see Android failing, but I will wait for your reply before addressing it.

src/ssl.cpp:162:3: error: unused member function '~lifecycle' [-Werror,-Wunused-member-function]
                ~lifecycle() = default;

Copy link
Owner

@arvidn arvidn left a comment

Choose a reason for hiding this comment

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

was this the issue, OpenSSL_add_all_algorithms();?
I'm still not understanding how the Android SDK can fail to build just because libtorrent supports an older library than what it uses.
I don't have a strong opinion about removing support for openssl 1.1.1 and earlier, are there some serious issues in those versions that warrants discouraging using them?

@aldenml
Copy link
Contributor Author

aldenml commented Oct 28, 2024

Yes, OpenSSL_add_all_algorithms undefined, and also CRYPTO_cleanup_all_ex_data. The problem is that OPENSSL_API_COMPAT is not defined when compiling with OpenSSL 3.4.0 using b2 all from source code. I don't know in which version that started to happen.

I think that removing OpenSSL 1.0.x that's is not longer supported is a good idea. I'm not aware of any serious problem tbh, but more than 8 years old, and not distributed anymore....also, less #ifs

@arvidn arvidn merged commit 1dd9565 into arvidn:master Oct 28, 2024
43 checks passed
@aldenml aldenml deleted the openssl-min-1.1 branch October 28, 2024 16:28
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