From aeeeb666a7ee43b32d7b42ac4cedab77529f92ea Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 9 Oct 2020 13:43:24 -0700 Subject: [PATCH] Maintenance Fixes 1. The test_wolfSSL_X509V3_EXT_print() test was using stderr for output, changed to stdout. 2. A call to XFREAD wasn't typecasting its output to the size of the variable getting the output in decodedCertCache_test(). --- tests/api.c | 3 +-- wolfcrypt/test/test.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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