Skip to content

Commit 68e085d

Browse files
authored
Merge pull request #9918 from douzzer/20260306-NO_SHA-test_ocsp_cert_unknown_crl_fallback
20260306-NO_SHA-test_ocsp_cert_unknown_crl_fallback (approved by @JacobBarthelmeh)
2 parents 2655c43 + b08f959 commit 68e085d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/api/test_ocsp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,8 @@ int test_ocsp_tls_cert_cb(void)
10481048
* - crl/crl.pem: CRL from ca-cert.pem, only revokes serial 0x02
10491049
*/
10501050
#if defined(HAVE_OCSP) && defined(HAVE_CRL) && \
1051-
defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES) && !defined(NO_RSA)
1051+
defined(HAVE_SSL_MEMIO_TESTS_DEPENDENCIES) && !defined(NO_RSA) && \
1052+
!defined(NO_SHA)
10521053

10531054
static int test_ocsp_unknown_crl_fallback_ocsp_io_cb(void* ioCtx,
10541055
const char* url, int urlSz, unsigned char* request, int requestSz,
@@ -1120,7 +1121,8 @@ int test_ocsp_cert_unknown_crl_fallback(void)
11201121
{
11211122
return TEST_SKIPPED;
11221123
}
1123-
#endif /* HAVE_OCSP && HAVE_CRL && HAVE_SSL_MEMIO_TESTS_DEPENDENCIES */
1124+
#endif /* HAVE_OCSP && HAVE_CRL && HAVE_SSL_MEMIO_TESTS_DEPENDENCIES && */
1125+
/* !NO_RSA && !NO_SHA */
11241126

11251127
/*
11261128
* Test: OCSP returns CERT_UNKNOWN for a non-leaf (intermediate) cert,

0 commit comments

Comments
 (0)