From: Dr. Stephen Henson Date: Wed, 26 Dec 2012 23:51:41 +0000 (+0000) Subject: Portability fix: use BIO_snprintf and pick up strcasecmp alternative X-Git-Tag: OpenSSL_1_0_2-beta1~482 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=29113688a1b56d92a6e8dd50faa186751d2b2e96;p=oweals%2Fopenssl.git Portability fix: use BIO_snprintf and pick up strcasecmp alternative definitions from e_os.h --- 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))