diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-20 08:22:10 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-21 09:52:25 +0200 |
commit | c3f23216e789241431058617ada1c39e7d9f09b5 (patch) | |
tree | df0c7c357be3fcd7c76a6dbb7475ba4b2b3f4886 /tests/set_key_utf8.c | |
parent | 88b4f9036aefd0f8e20de6cae56b62be7a721b70 (diff) | |
download | gnutls-c3f23216e789241431058617ada1c39e7d9f09b5.tar.gz |
tests: updated to reflect the fact that invalid dns names are rejected
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/set_key_utf8.c')
-rw-r--r-- | tests/set_key_utf8.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/set_key_utf8.c b/tests/set_key_utf8.c index 55788671e0..7a02e45618 100644 --- a/tests/set_key_utf8.c +++ b/tests/set_key_utf8.c @@ -136,9 +136,12 @@ static void auto_parse(void) test_cli_serv(x509_cred, clicred, "NORMAL", "localhost", NULL, NULL, NULL); /* the DNS name of the first cert */ test_cli_serv(x509_cred, clicred, "NORMAL", "简体中文.εξτρα.com", NULL, NULL, NULL); /* the second DNS name of cert */ - test_cli_serv(x509_cred, clicred, "NORMAL", "raw:简体中文.εξτρα.com", NULL, NULL, NULL); /* the second DNS name of cert */ test_cli_serv(x509_cred, clicred, "NORMAL", "xn--fiqu1az03c18t.xn--mxah1amo.com", NULL, NULL, NULL); /* its IDNA equivalent */ + /* the raw DNS should result to verification failure as the advertized name should + * not be considered and the first cert should be provided */ + test_cli_serv_expect(x509_cred, clicred, "NORMAL", "NORMAL", "raw:简体中文.εξτρα.com", GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER, GNUTLS_E_AGAIN); + gnutls_certificate_free_credentials(x509_cred); gnutls_certificate_free_credentials(clicred); |