Fix snprintf missing for windows build
#include "internal/cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>
+#include <openssl/bio.h>
#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));
