summaryrefslogtreecommitdiff
path: root/tests/cert-status.c
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-03-04 17:17:47 +0100
committerDaiki Ueno <dueno@redhat.com>2019-03-05 15:02:46 +0100
commit2a0164bf28fa2d83a274f290ec9aeaa230fb74d8 (patch)
treecfebee47d1b204d3892de62e919235c85479062b /tests/cert-status.c
parent8507645bc6aef19f3755143886995b0a61f894d6 (diff)
downloadgnutls-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/cert-status.c')
-rw-r--r--tests/cert-status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cert-status.c b/tests/cert-status.c
index 83606ee920..c9b4dc2ea3 100644
--- a/tests/cert-status.c
+++ b/tests/cert-status.c
@@ -252,11 +252,11 @@ void doit(void)
start("NORMAL:-VERS-ALL:+VERS-TLS1.3", GNUTLS_CERT_IGNORE, 0);
start("NORMAL:-VERS-ALL:+VERS-TLS1.3", GNUTLS_CERT_REQUEST, 0);
- start("NORMAL:-VERS-ALL:+VERS-TLS1.3", GNUTLS_CERT_REQUIRE, GNUTLS_E_NO_CERTIFICATE_FOUND);
+ start("NORMAL:-VERS-ALL:+VERS-TLS1.3", GNUTLS_CERT_REQUIRE, GNUTLS_E_CERTIFICATE_REQUIRED);
start("NORMAL", GNUTLS_CERT_IGNORE, 0);
start("NORMAL", GNUTLS_CERT_REQUEST, 0);
- start("NORMAL", GNUTLS_CERT_REQUIRE, GNUTLS_E_NO_CERTIFICATE_FOUND);
+ start("NORMAL", GNUTLS_CERT_REQUIRE, GNUTLS_E_CERTIFICATE_REQUIRED);
}
#endif /* _WIN32 */