diff --git a/tests/api.c b/tests/api.c index 6b7787971..f5a3f5186 100644 --- a/tests/api.c +++ b/tests/api.c @@ -3770,6 +3770,8 @@ static int test_wc_Des3_SetIV (void) ret = wc_Des3_SetIV(NULL, iv); if (ret == BAD_FUNC_ARG) { ret = wc_Des3_SetIV(&des, NULL); + } else if (ret == 0) { + ret = SSL_FATAL_ERROR; } } @@ -3826,6 +3828,9 @@ static int test_wc_Des3_SetKey (void) /* Default case. Should return 0. */ ret = wc_Des3_SetKey(&des, key, NULL, DES_ENCRYPTION); } + if (ret == 0) { + ret = SSL_FATAL_ERROR; + } } /* END if ret != 0 */ printf(resultFmt, ret == 0 ? passed : failed);