tests: gate ocsp test on SM2 || SM3

we don't properly support SM2 and SM3 hash algo id properly yet
This commit is contained in:
Marco Oliverio
2025-02-27 19:36:45 +00:00
parent 83f5644549
commit 194db7e844
2 changed files with 5 additions and 3 deletions

View File

@ -71324,7 +71324,8 @@ static int test_wolfSSL_OCSP_id_get0_info(void)
{
EXPECT_DECLS;
#if (defined(OPENSSL_ALL) || defined(WOLFSSL_HAPROXY)) && \
defined(HAVE_OCSP) && !defined(NO_FILESYSTEM) && !defined(NO_RSA)
defined(HAVE_OCSP) && !defined(NO_FILESYSTEM) && !defined(NO_RSA) && \
!defined(WOLFSSL_SM2) && !defined(WOLFSSL_SM3)
X509* cert = NULL;
X509* issuer = NULL;
OCSP_CERTID* id = NULL;

View File

@ -593,7 +593,8 @@ int test_ocsp_status_callback(void)
!defined(WOLFSSL_NO_TLS12) \
&& defined(OPENSSL_ALL) */
#if !defined (NO_SHA) && defined(OPENSSL_ALL) && defined(HAVE_OCSP)
#if !defined(NO_SHA) && defined(OPENSSL_ALL) && defined(HAVE_OCSP) && \
!defined(WOLFSSL_SM3) && !defined(WOLFSSL_SM2)
int test_ocsp_certid_enc_dec(void)
{
EXPECT_DECLS;
@ -653,7 +654,7 @@ int test_ocsp_certid_enc_dec(void)
return EXPECT_SUCCESS();
}
#else
#else /* !NO_SHA && OPENSSL_ALL && HAVE_OCSP && !WOLFSSL_SM3 && !WOLFSSL_SM2 */
int test_ocsp_certid_enc_dec(void)
{
return TEST_SKIPPED;