summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ssl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/ssl.c b/test/ssl.c
index 321c9b7..ec542e2 100644
--- a/test/ssl.c
+++ b/test/ssl.c
@@ -1488,16 +1488,14 @@ static int cert_identities(void)
static int nulcn_identity(void)
{
ne_ssl_certificate *cert = ne_ssl_cert_read(nul_cn_fn);
- const char *id, *expected = "www.bank.com\\x00.badguy.com";
+ const char *id;
ONN("could not read nulcn.pem", cert == NULL);
id = ne_ssl_cert_identity(cert);
- ONV(id != NULL
- && strcmp(id, expected) != 0,
- ("certificate `nulcn.pem' had identity `%s' not `%s'",
- id, expected));
+ ONN("embedded NUL byte not quoted",
+ id != NULL && strcmp(id, "www.bank.com") == 0);
ne_ssl_cert_free(cert);
return OK;