diff --git a/tests/api.c b/tests/api.c index 866000ecb..6a7c75474 100644 --- a/tests/api.c +++ b/tests/api.c @@ -33329,8 +33329,7 @@ static void test_wolfSSL_X509V3_EXT_print(void) }; int* n; - printf(testingFmt, "wolfSSL_X509V3_EXT_print"); - AssertNotNull(bio = BIO_new_fp(stderr, BIO_NOCLOSE)); + AssertNotNull(bio = BIO_new_fp(stdout, BIO_NOCLOSE)); AssertNotNull(x509 = wolfSSL_X509_load_certificate_file(cliCertFileExt, WOLFSSL_FILETYPE_PEM)); diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 8a81754e9..fee483566 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -11087,7 +11087,7 @@ static int decodedCertCache_test(void) /* load cert.der */ file = XFOPEN(certDerFile, "rb"); if (file != NULL) { - derSz = XFREAD(der, 1, FOURK_BUF, file); + derSz = (word32)XFREAD(der, 1, FOURK_BUF, file); XFCLOSE(file); } else