cpp-httplib: `SSLClientServerTest.*` tests fail with OpenSSL 3.2.1
When attempting to run the test suite on Gentoo Linux amd64, I’m seeing most of the SSLClientServerTest.* tests fail:
[ FAILED ] 6 tests, listed below:
[ FAILED ] SSLClientServerTest.ClientCertPresent
[ FAILED ] SSLClientServerTest.ClientEncryptedCertPresent
[ FAILED ] SSLClientServerTest.MemoryClientCertPresent
[ FAILED ] SSLClientServerTest.MemoryClientEncryptedCertPresent
[ FAILED ] SSLClientServerTest.TrustDirOptional
[ FAILED ] SSLClientServerTest.CustomizeServerSSLCtx
This is on 548dfff0aef25e36e971af96b49ce7fbb72d840e (but I also reproduce the same result on 0.15.3).
Detailed results:
[----------] 8 tests from SSLClientServerTest
[ RUN ] SSLClientServerTest.ClientCertPresent
test.cc:5160: Failure
Value of: res
Actual: false
Expected: true
[ FAILED ] SSLClientServerTest.ClientCertPresent (7 ms)
[ RUN ] SSLClientServerTest.ClientEncryptedCertPresent
test.cc:5160: Failure
Value of: res
Actual: false
Expected: true
[ FAILED ] SSLClientServerTest.ClientEncryptedCertPresent (7 ms)
[ RUN ] SSLClientServerTest.MemoryClientCertPresent
test.cc:5243: Failure
Value of: res
Actual: false
Expected: true
[ FAILED ] SSLClientServerTest.MemoryClientCertPresent (6 ms)
[ RUN ] SSLClientServerTest.MemoryClientEncryptedCertPresent
test.cc:5243: Failure
Value of: res
Actual: false
Expected: true
[ FAILED ] SSLClientServerTest.MemoryClientEncryptedCertPresent (7 ms)
[ RUN ] SSLClientServerTest.ClientCertMissing
[ OK ] SSLClientServerTest.ClientCertMissing (5 ms)
[ RUN ] SSLClientServerTest.TrustDirOptional
test.cc:5308: Failure
Value of: res
Actual: false
Expected: true
[ FAILED ] SSLClientServerTest.TrustDirOptional (6 ms)
[ RUN ] SSLClientServerTest.SSLConnectTimeout
[ OK ] SSLClientServerTest.SSLConnectTimeout (1006 ms)
[ RUN ] SSLClientServerTest.CustomizeServerSSLCtx
test.cc:5428: Failure
Value of: res
Actual: false
Expected: true
[ FAILED ] SSLClientServerTest.CustomizeServerSSLCtx (7 ms)
[----------] 8 tests from SSLClientServerTest (1056 ms total)
Please let me know how can I help you debug this.
Full output: test.txt
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (12 by maintainers)
Commits related to this issue
- test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0 Since OpenSSL commit <https://github.com/openssl/openssl/commit/342e3652c791bdb06e08abcc169b4456c83ccd00>, the default X.509 certificat... — committed to Tachi107/cpp-httplib by Tachi107 2 years ago
- test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0 Since OpenSSL commit <https://github.com/openssl/openssl/commit/342e3652c791bdb06e08abcc169b4456c83ccd00>, the default X.509 certificat... — committed to Tachi107/cpp-httplib by Tachi107 2 years ago
- test(meson): fix `SSLClientServerTest.*` tests with OpenSSL 3.2.0 (#1940) * build(meson): bump minimum version to 0.62.0 This allows making some minor cleanups * test(meson): fix SSLClientServe... — committed to yhirose/cpp-httplib by Tachi107 2 years ago
- Use gen-certs.sh for cmake as well, fixes #1798 for cmake — committed to opoplawski/cpp-httplib by opoplawski 2 years ago
- Fix #1798 for CMake — committed to yhirose/cpp-httplib by yhirose 2 years ago
- Fix #1798 for CMake (#1944) — committed to rayshencc/cpp-httplib by yhirose 2 years ago
@Tachi107 fantastic job! I’ll make the same change to test/Makefile.