From 740fb6bafc3daec92d60f5e6466106495601491d Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Thu, 20 Feb 2025 21:51:37 +0000 Subject: [PATCH] test: gate ocsp test when SHA-1 is disabled tests blobs contains sha-1 hashes in certificate status --- tests/api/test_ocsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/api/test_ocsp.c b/tests/api/test_ocsp.c index 6eb818426..5e172fa50 100644 --- a/tests/api/test_ocsp.c +++ b/tests/api/test_ocsp.c @@ -34,7 +34,7 @@ #include #include -#if defined(HAVE_OCSP) +#if defined(HAVE_OCSP) && !defined(NO_SHA) struct ocsp_cb_ctx { byte* response; int responseSz; @@ -158,12 +158,12 @@ int test_ocsp_response_parsing(void) return EXPECT_SUCCESS(); } -#else /* HAVE_OCSP */ +#else /* HAVE_OCSP && !NO_SHA */ int test_ocsp_response_parsing(void) { return TEST_SKIPPED; } -#endif /* HAVE_OCSP */ +#endif /* HAVE_OCSP && !NO_SHA */ #if defined(HAVE_OCSP) && (defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA)) static int test_ocsp_create_x509store(WOLFSSL_X509_STORE** store,