@@ -2056,7 +2056,7 @@ static int myCEKwrapFunc(PKCS7* pkcs7, byte* cek, word32 cekSz, byte* keyId,
20562056 HAVE_AES_KEYWRAP */
20572057
20582058
2059- #if defined(HAVE_PKCS7 ) && defined(ASN_BER_TO_DER )
2059+ #if defined(HAVE_PKCS7 ) && defined(ASN_BER_TO_DER ) && !defined( NO_RSA )
20602060#define MAX_TEST_DECODE_SIZE 6000
20612061static int test_wc_PKCS7_DecodeEnvelopedData_stream_decrypt_cb (wc_PKCS7 * pkcs7 ,
20622062 const byte * output , word32 outputSz , void * ctx ) {
@@ -2088,8 +2088,8 @@ static int test_wc_PKCS7_DecodeEnvelopedData_stream_decrypt_cb(wc_PKCS7* pkcs7,
20882088 */
20892089int test_wc_PKCS7_DecodeEnvelopedData_stream (void )
20902090{
2091- #if defined(HAVE_PKCS7 ) && defined(ASN_BER_TO_DER )
20922091 EXPECT_DECLS ;
2092+ #if defined(HAVE_PKCS7 ) && defined(ASN_BER_TO_DER ) && !defined(NO_RSA )
20932093 PKCS7 * pkcs7 = NULL ;
20942094 int ret = 0 ;
20952095 XFILE f = XBADFILE ;
@@ -2139,10 +2139,8 @@ int test_wc_PKCS7_DecodeEnvelopedData_stream(void)
21392139 }
21402140
21412141 wc_PKCS7_Free (pkcs7 );
2142- return EXPECT_RESULT ();
2143- #else
2144- return TEST_SKIPPED ;
21452142#endif
2143+ return EXPECT_RESULT ();
21462144} /* END test_wc_PKCS7_DecodeEnvelopedData_stream() */
21472145
21482146
@@ -2151,8 +2149,8 @@ int test_wc_PKCS7_DecodeEnvelopedData_stream(void)
21512149 */
21522150int test_wc_PKCS7_DecodeEnvelopedData_multiple_recipients (void )
21532151{
2154- #if defined(HAVE_PKCS7 )
21552152 EXPECT_DECLS ;
2153+ #if defined(HAVE_PKCS7 ) && !defined(NO_RSA )
21562154 PKCS7 * pkcs7 = NULL ;
21572155 int ret = 0 ;
21582156 XFILE f = XBADFILE ;
@@ -2227,10 +2225,8 @@ int test_wc_PKCS7_DecodeEnvelopedData_multiple_recipients(void)
22272225 pkcs7 = NULL ;
22282226 }
22292227
2230- return EXPECT_RESULT ();
2231- #else
2232- return TEST_SKIPPED ;
22332228#endif
2229+ return EXPECT_RESULT ();
22342230} /* END test_wc_PKCS7_DecodeEnvelopedData_multiple_recipients() */
22352231
22362232/*
0 commit comments