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

test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0 #1940

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

Tachi107
Copy link
Contributor

This pull request fixes issue #1798 when building with Meson, while also bumping the minimum required Meson version to 0.62.0. Please do not squash on merge!

Here are the descriptions of the two individual commits:

build(meson): bump minimum version to 0.62.0

This allows making some minor cleanups

test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0

Since OpenSSL commit openssl/openssl@342e365, the default X.509 certificate format generated with the openssl req command has been changed to X.509 v3 from X.509 v1.

For some reason, this change breaks cpp-httplib's SSLClientServerTest.* tests.

To fix the test failures, this patch passes the -x509v1 flag instead of -x509 when OpenSSL 3.2.0 or newer is detected. To detect the version of a command line utility, Meson 0.62.0 or later is required.

Fixes #1798, but only for the Meson build system.

This allows making some minor cleanups
Since OpenSSL commit
<openssl/openssl@342e365>,
the default X.509 certificate format generated with the `openssl req`
command has been changed to X.509 v3 from X.509 v1.

For some reason, this change breaks cpp-httplib's SSLClientServerTest.*
tests.

To fix the test failures, this patch passes the '-x509v1' flag instead
of '-x509' when OpenSSL 3.2.0 or newer is detected. To detect the
version of a command line utility, Meson 0.62.0 or later is required.

Fixes <yhirose#1798>, but only for
the Meson build system.
@Tachi107 Tachi107 force-pushed the fix-tests-openssl-3.2-meson branch from c151db4 to f68af45 Compare September 17, 2024 13:30
@yhirose yhirose merged commit 5064373 into yhirose:master Sep 17, 2024
4 checks passed
@Tachi107 Tachi107 deleted the fix-tests-openssl-3.2-meson branch September 17, 2024 21:10
@yhirose
Copy link
Owner

yhirose commented Sep 17, 2024

@Tachi107 thanks a lot!

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.

SSLClientServerTest.* tests fail with OpenSSL 3.2.1
2 participants