From bb4f39114caabbc11caf7840db7bfcd2bf2ff430 Mon Sep 17 00:00:00 2001 From: Shane Lontis Date: Wed, 29 Apr 2020 16:19:16 +1000 Subject: [PATCH] Fix snprintf missing for windows build Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/11675) --- crypto/x509/v3_alt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/x509/v3_alt.c b/crypto/x509/v3_alt.c index 52e936a3af..98ff0bca94 100644 --- a/crypto/x509/v3_alt.c +++ b/crypto/x509/v3_alt.c @@ -11,6 +11,7 @@ #include "internal/cryptlib.h" #include #include +#include #include "ext_dat.h" DEFINE_STACK_OF(CONF_VALUE) @@ -126,7 +127,8 @@ STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, break; default: if (OBJ_obj2txt(oline, sizeof(oline), gen->d.otherName->type_id, 0) > 0) - snprintf(othername, sizeof(othername), "othername: %s:", oline); + BIO_snprintf(othername, sizeof(othername), "othername: %s:", + oline); else strncpy(othername, "othername:", sizeof(othername)); -- 2.25.1