diff options
-rw-r--r-- | test/ssl.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |