From bdcf772aa55413b0f9637bc68b78f47a842415c9 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 26 Dec 2012 23:51:56 +0000 Subject: [PATCH] Portability fix: use BIO_snprintf and pick up strcasecmp alternative definitions from e_os.h --- crypto/x509v3/v3nametest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/x509v3/v3nametest.c b/crypto/x509v3/v3nametest.c index aa0d29c3da..77d86795c1 100644 --- a/crypto/x509v3/v3nametest.c +++ b/crypto/x509v3/v3nametest.c @@ -1,5 +1,6 @@ #include #include +#include "../e_os.h" #include static const char *const names[] = @@ -251,7 +252,7 @@ static void check_message(const struct set_name_fn *fn, const char *op, char msg[1024]; if (match < 0) return; - snprintf(msg, sizeof(msg), "%s: %s: [%s] %s [%s]", + BIO_snprintf(msg, sizeof(msg), "%s: %s: [%s] %s [%s]", fn->name, op, nameincert, match ? "matches" : "does not match", name); if (is_exception(msg)) -- GitLab