Test fixup.

This commit is contained in:
Anthony Hu
2022-04-04 13:43:06 -04:00
parent ae9926cc42
commit 400c7238ef

View File

@ -30505,7 +30505,7 @@ static void test_wc_CheckCertSigPubKey(void)
/* Bad cert size. */
ret = wc_CheckCertSigPubKey(cert_der, 0, NULL, keyDer, keyDerSz,
RSAk);
AssertIntEQ(ret, ASN_PARSE_E);
AssertTrue(ret == ASN_PARSE_E || ret == BUFFER_E);
/* No public key. */
ret = wc_CheckCertSigPubKey(cert_der, cert_dersz, NULL, NULL, keyDerSz,