Skip to content

Commit a005eef

Browse files
committed
Add test guard for NO_ASN
1 parent f12bb50 commit a005eef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/api/test_asn.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,8 @@ int test_wc_DecodeObjectId(void)
925925
{
926926
EXPECT_DECLS;
927927

928-
#if defined(HAVE_OID_DECODING) || defined(WOLFSSL_ASN_PRINT)
928+
#if !defined(NO_ASN) && \
929+
(defined(HAVE_OID_DECODING) || defined(WOLFSSL_ASN_PRINT))
929930
{
930931
/* OID 1.2.840.113549.1.1.11 (sha256WithRSAEncryption)
931932
* DER encoding: 2a 86 48 86 f7 0d 01 01 0b
@@ -989,7 +990,7 @@ int test_wc_DecodeObjectId(void)
989990
out, &outSz),
990991
WC_NO_ERR_TRACE(BUFFER_E));
991992
}
992-
#endif /* HAVE_OID_DECODING || WOLFSSL_ASN_PRINT */
993+
#endif /* !NO_ASN && (HAVE_OID_DECODING || WOLFSSL_ASN_PRINT) */
993994

994995
return EXPECT_RESULT();
995996
}

0 commit comments

Comments
 (0)