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().
This commit is contained in:
John Safranek
2020-10-09 13:43:24 -07:00
parent 724eb96047
commit aeeeb666a7
2 changed files with 2 additions and 3 deletions

View File

@ -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));

View File

@ -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