update test case to account for NO_DES3 build and resolve clang tidy warnings

This commit is contained in:
JacobBarthelmeh
2025-03-05 16:28:26 -07:00
parent 68e483d196
commit 624233fb98
2 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -39268,7 +39268,11 @@ static int test_wc_PKCS7_DecodeEnvelopedData_stream(void)
ret = wc_PKCS7_DecodeEnvelopedData(pkcs7, testStreamBuffer,
testStreamBufferSz, NULL, 0);
} while (ret == WC_NO_ERR_TRACE(WC_PKCS7_WANT_READ_E));
ExpectIntGT(ret, 0);
#ifdef NO_DES3
ExpectIntEQ(ret, ALGO_ID_E);
#else
ExpectIntGT(ret, 0);
#endif
if (f != XBADFILE) {
XFCLOSE(f);