diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-12-26 23:51:41 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-12-26 23:51:41 +0000 |
commit | 29113688a1b56d92a6e8dd50faa186751d2b2e96 (patch) | |
tree | d91a3fda96b81a084a0c64c816abefa2ea2bee8b /crypto/x509v3 | |
parent | 44c970746fb589b01c26511798438a5218ded33d (diff) |
Portability fix: use BIO_snprintf and pick up strcasecmp alternative
definitions from e_os.h
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3nametest.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <openssl/x509.h> #include <openssl/x509v3.h> +#include "../e_os.h" #include <string.h> 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)) |