Skip to content

Commit 194db7e

Browse files
committed
tests: gate ocsp test on SM2 || SM3
we don't properly support SM2 and SM3 hash algo id properly yet
1 parent 83f5644 commit 194db7e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71324,7 +71324,8 @@ static int test_wolfSSL_OCSP_id_get0_info(void)
7132471324
{
7132571325
EXPECT_DECLS;
7132671326
#if (defined(OPENSSL_ALL) || defined(WOLFSSL_HAPROXY)) && \
71327-
defined(HAVE_OCSP) && !defined(NO_FILESYSTEM) && !defined(NO_RSA)
71327+
defined(HAVE_OCSP) && !defined(NO_FILESYSTEM) && !defined(NO_RSA) && \
71328+
!defined(WOLFSSL_SM2) && !defined(WOLFSSL_SM3)
7132871329
X509* cert = NULL;
7132971330
X509* issuer = NULL;
7133071331
OCSP_CERTID* id = NULL;

tests/api/test_ocsp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ int test_ocsp_status_callback(void)
593593
!defined(WOLFSSL_NO_TLS12) \
594594
&& defined(OPENSSL_ALL) */
595595

596-
#if !defined (NO_SHA) && defined(OPENSSL_ALL) && defined(HAVE_OCSP)
596+
#if !defined(NO_SHA) && defined(OPENSSL_ALL) && defined(HAVE_OCSP) && \
597+
!defined(WOLFSSL_SM3) && !defined(WOLFSSL_SM2)
597598
int test_ocsp_certid_enc_dec(void)
598599
{
599600
EXPECT_DECLS;
@@ -653,7 +654,7 @@ int test_ocsp_certid_enc_dec(void)
653654

654655
return EXPECT_SUCCESS();
655656
}
656-
#else
657+
#else /* !NO_SHA && OPENSSL_ALL && HAVE_OCSP && !WOLFSSL_SM3 && !WOLFSSL_SM2 */
657658
int test_ocsp_certid_enc_dec(void)
658659
{
659660
return TEST_SKIPPED;

0 commit comments

Comments
 (0)