Author: brane
Date: Wed Dec 31 15:51:41 2025
New Revision: 1931007

Log:
Fix SSL tests with OpenSSL 3.6+.

* test/test_ssl.c (test_ssl_revoked_server_cert):
   Adjust the expected output for changed error handling in OpenSSL 3.6.

Modified:
   serf/trunk/test/test_ssl.c

Modified: serf/trunk/test/test_ssl.c
==============================================================================
--- serf/trunk/test/test_ssl.c  Wed Dec 31 14:08:28 2025        (r1931006)
+++ serf/trunk/test/test_ssl.c  Wed Dec 31 15:51:41 2025        (r1931007)
@@ -1397,7 +1397,11 @@ static void test_ssl_revoked_server_cert
     CuAssertStrEquals(tc,
         "cert_cb: failures = CERT_REVOKED, cert = (CN=localhost, depth=0)\n"
         "cert_cb: failures = CERT_UNABLE_TO_GET_CRL, cert = (CN=Serf CA, 
depth=1)\n"
+#if OPENSSL_VERSION_NUMBER < ((3 << 28) | (6 << 20)) /* OpenSSL 3.6.0 */
+        /* In OpenSSL 3.6, error handling changed so that only
+           the first CERT_UNABLE_TO_GET_CRL is reported. */
         "cert_cb: failures = CERT_UNABLE_TO_GET_CRL, cert = (CN=Serf Root CA, 
depth=2)\n"
+#endif
         "cert_cb: failures = NONE, cert = (CN=localhost, depth=0)\n",
         tb->user_baton);
 }

Reply via email to