Skip to content

Commit

Permalink
test: gate ocsp test when SHA-1 is disabled
Browse files Browse the repository at this point in the history
tests blobs contains sha-1 hashes in certificate status
  • Loading branch information
rizlik committed Feb 24, 2025
1 parent 3a8e60d commit 3d19c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api/test_ocsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <wolfssl/ocsp.h>
#include <wolfssl/ssl.h>

#if defined(HAVE_OCSP)
#if defined(HAVE_OCSP) && !defined(NO_SHA)
struct ocsp_cb_ctx {
byte* response;
int responseSz;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3d19c0a

Please sign in to comment.