forked from wolfSSL/wolfssl
Allow override of XSNPRINTF for Windows
This commit is contained in:
@ -761,8 +761,8 @@ typedef struct w64wrapper {
|
||||
|
||||
/* snprintf is used in asn.c for GetTimeString, PKCS7 test, and when
|
||||
debugging is turned on */
|
||||
#ifndef XSNPRINTF
|
||||
#ifndef USE_WINDOWS_API
|
||||
#ifndef XSNPRINTF
|
||||
#if defined(WOLFSSL_ESPIDF) && \
|
||||
(!defined(NO_ASN_TIME) && defined(HAVE_PKCS7))
|
||||
#include<stdarg.h>
|
||||
@ -798,7 +798,6 @@ typedef struct w64wrapper {
|
||||
#include <stdio.h>
|
||||
#define XSNPRINTF snprintf
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
|
||||
@ -834,6 +833,7 @@ typedef struct w64wrapper {
|
||||
#define XSNPRINTF snprintf
|
||||
#endif /* _MSC_VER */
|
||||
#endif /* USE_WINDOWS_API */
|
||||
#endif /* !XSNPRINTF */
|
||||
|
||||
#if defined(WOLFSSL_CERT_EXT) || defined(OPENSSL_EXTRA) || \
|
||||
defined(HAVE_ALPN) || defined(WOLFSSL_SNIFFER)
|
||||
|
Reference in New Issue
Block a user