Portability fix: use BIO_snprintf and pick up strcasecmp alternative
definitions from e_os.h
This commit is contained in:
parent
89a5e2f704
commit
bdcf772aa5
@ -1,5 +1,6 @@
|
|||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
|
#include "../e_os.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static const char *const names[] =
|
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];
|
char msg[1024];
|
||||||
if (match < 0)
|
if (match < 0)
|
||||||
return;
|
return;
|
||||||
snprintf(msg, sizeof(msg), "%s: %s: [%s] %s [%s]",
|
BIO_snprintf(msg, sizeof(msg), "%s: %s: [%s] %s [%s]",
|
||||||
fn->name, op, nameincert,
|
fn->name, op, nameincert,
|
||||||
match ? "matches" : "does not match", name);
|
match ? "matches" : "does not match", name);
|
||||||
if (is_exception(msg))
|
if (is_exception(msg))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user