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 aa0d29c..77d8679 100644 --- a/crypto/x509v3/v3nametest.c +++ b/crypto/x509v3/v3nametest.c
@@ -1,5 +1,6 @@ #include <openssl/x509.h> #include <openssl/x509v3.h> +#include "../e_os.h" #include <string.h> static const char *const names[] = @@ -251,7 +252,7 @@ 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))