diff options
author | Daiki Ueno <dueno@redhat.com> | 2019-03-04 17:17:47 +0100 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2019-03-05 15:02:46 +0100 |
commit | 2a0164bf28fa2d83a274f290ec9aeaa230fb74d8 (patch) | |
tree | cfebee47d1b204d3892de62e919235c85479062b /tests/tls13 | |
parent | 8507645bc6aef19f3755143886995b0a61f894d6 (diff) | |
download | gnutls-2a0164bf28fa2d83a274f290ec9aeaa230fb74d8.tar.gz |
tls13/certificate: utilize "certificate_required" alerttmp-cert-req
This could make errors more distinguishable when the client sends no
certificates or a bad certificate.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'tests/tls13')
-rw-r--r-- | tests/tls13/post-handshake-with-cert-auto.c | 2 | ||||
-rw-r--r-- | tests/tls13/post-handshake-with-cert.c | 2 | ||||
-rw-r--r-- | tests/tls13/post-handshake-with-psk.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/tls13/post-handshake-with-cert-auto.c b/tests/tls13/post-handshake-with-cert-auto.c index 9d920da80c..74f7d8898a 100644 --- a/tests/tls13/post-handshake-with-cert-auto.c +++ b/tests/tls13/post-handshake-with-cert-auto.c @@ -360,7 +360,7 @@ void start(const char *name, int err, int type, unsigned max_auths, unsigned sen void doit(void) { start("multi-reauth", 0, GNUTLS_CERT_REQUIRE, MAX_AUTHS, 1); - start("reauth-require with no-cert", GNUTLS_E_NO_CERTIFICATE_FOUND, GNUTLS_CERT_REQUIRE, 1, 0); + start("reauth-require with no-cert", GNUTLS_E_CERTIFICATE_REQUIRED, GNUTLS_CERT_REQUIRE, 1, 0); start("reauth-request with no-cert", 0, GNUTLS_CERT_REQUEST, 1, 0); } #endif /* _WIN32 */ diff --git a/tests/tls13/post-handshake-with-cert.c b/tests/tls13/post-handshake-with-cert.c index d24e06db70..4875151621 100644 --- a/tests/tls13/post-handshake-with-cert.c +++ b/tests/tls13/post-handshake-with-cert.c @@ -377,7 +377,7 @@ void start(const char *name, int err, int type, unsigned max_auths, unsigned sen void doit(void) { start("multi-reauth", 0, GNUTLS_CERT_REQUIRE, MAX_AUTHS, 1); - start("reauth-require with no-cert", GNUTLS_E_NO_CERTIFICATE_FOUND, GNUTLS_CERT_REQUIRE, 1, 0); + start("reauth-require with no-cert", GNUTLS_E_CERTIFICATE_REQUIRED, GNUTLS_CERT_REQUIRE, 1, 0); start("reauth-request with no-cert", 0, GNUTLS_CERT_REQUEST, 1, 0); } #endif /* _WIN32 */ diff --git a/tests/tls13/post-handshake-with-psk.c b/tests/tls13/post-handshake-with-psk.c index a85b57ab75..10eb83c940 100644 --- a/tests/tls13/post-handshake-with-psk.c +++ b/tests/tls13/post-handshake-with-psk.c @@ -361,7 +361,7 @@ void start(const char *name, int err, int type, unsigned max_auths, unsigned sen void doit(void) { start("multi-reauth", 0, GNUTLS_CERT_REQUIRE, MAX_AUTHS, 1); - start("reauth-require with no-cert", GNUTLS_E_NO_CERTIFICATE_FOUND, GNUTLS_CERT_REQUIRE, 1, 0); + start("reauth-require with no-cert", GNUTLS_E_CERTIFICATE_REQUIRED, GNUTLS_CERT_REQUIRE, 1, 0); start("reauth-request with no-cert", 0, GNUTLS_CERT_REQUEST, 1, 0); } #endif /* _WIN32 */ |