Fix for vasprintf with AIX

This commit is contained in:
Eric Blankenhorn
2019-11-20 17:47:54 -06:00
parent 88fb7efb8c
commit b57294eff7
2 changed files with 54 additions and 2 deletions

View File

@@ -26,7 +26,7 @@
#include <wolfssl/wolfcrypt/settings.h>
#if defined(OPENSSL_EXTRA) && !defined(_WIN32)
/* turn on GNU extensions for vasprintf with wolfSSL_BIO_printf */
/* turn on GNU extensions for XVASPRINTF with wolfSSL_BIO_printf */
#undef _GNU_SOURCE
#define _GNU_SOURCE
#endif
@@ -26151,7 +26151,7 @@ int wolfSSL_BIO_printf(WOLFSSL_BIO* bio, const char* format, ...)
case WOLFSSL_BIO_SSL:
{
char* pt = NULL;
ret = vasprintf(&pt, format, args);
ret = XVASPRINTF(&pt, format, args);
if (ret > 0 && pt != NULL) {
wolfSSL_BIO_write(bio, pt, ret);
}