mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
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:
@ -33329,8 +33329,7 @@ static void test_wolfSSL_X509V3_EXT_print(void)
|
|||||||
};
|
};
|
||||||
int* n;
|
int* n;
|
||||||
|
|
||||||
printf(testingFmt, "wolfSSL_X509V3_EXT_print");
|
AssertNotNull(bio = BIO_new_fp(stdout, BIO_NOCLOSE));
|
||||||
AssertNotNull(bio = BIO_new_fp(stderr, BIO_NOCLOSE));
|
|
||||||
|
|
||||||
AssertNotNull(x509 = wolfSSL_X509_load_certificate_file(cliCertFileExt,
|
AssertNotNull(x509 = wolfSSL_X509_load_certificate_file(cliCertFileExt,
|
||||||
WOLFSSL_FILETYPE_PEM));
|
WOLFSSL_FILETYPE_PEM));
|
||||||
|
@ -11087,7 +11087,7 @@ static int decodedCertCache_test(void)
|
|||||||
/* load cert.der */
|
/* load cert.der */
|
||||||
file = XFOPEN(certDerFile, "rb");
|
file = XFOPEN(certDerFile, "rb");
|
||||||
if (file != NULL) {
|
if (file != NULL) {
|
||||||
derSz = XFREAD(der, 1, FOURK_BUF, file);
|
derSz = (word32)XFREAD(der, 1, FOURK_BUF, file);
|
||||||
XFCLOSE(file);
|
XFCLOSE(file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user