diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cert-status.c | 4 | ||||
-rw-r--r-- | tests/empty_retrieve_function.c | 6 | ||||
-rw-r--r-- | tests/null_retrieve_function.c | 6 | ||||
-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 |
6 files changed, 11 insertions, 11 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 */ diff --git a/tests/empty_retrieve_function.c b/tests/empty_retrieve_function.c index 7ea920494c..c12499bc34 100644 --- a/tests/empty_retrieve_function.c +++ b/tests/empty_retrieve_function.c @@ -110,17 +110,17 @@ void doit(void) gnutls_certificate_allocate_credentials(&clicred); gnutls_certificate_set_retrieve_function(clicred, cert_cb1); - _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_NO_CERTIFICATE_FOUND, -1); + _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_CERTIFICATE_REQUIRED, -1); gnutls_certificate_free_credentials(clicred); gnutls_certificate_allocate_credentials(&clicred); gnutls_certificate_set_retrieve_function2(clicred, cert_cb2); - _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_NO_CERTIFICATE_FOUND, -1); + _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_CERTIFICATE_REQUIRED, -1); gnutls_certificate_free_credentials(clicred); gnutls_certificate_allocate_credentials(&clicred); gnutls_certificate_set_retrieve_function3(clicred, cert_cb3); - _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_NO_CERTIFICATE_FOUND, -1); + _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_CERTIFICATE_REQUIRED, -1); gnutls_certificate_free_credentials(clicred); gnutls_certificate_free_credentials(x509_cred); diff --git a/tests/null_retrieve_function.c b/tests/null_retrieve_function.c index f165c8b07b..3e65975326 100644 --- a/tests/null_retrieve_function.c +++ b/tests/null_retrieve_function.c @@ -102,19 +102,19 @@ void doit(void) gnutls_certificate_allocate_credentials(&clicred); gnutls_certificate_set_retrieve_function(clicred, cert_cb1); gnutls_certificate_set_retrieve_function(clicred, NULL); - _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_NO_CERTIFICATE_FOUND, -1); + _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_CERTIFICATE_REQUIRED, -1); gnutls_certificate_free_credentials(clicred); gnutls_certificate_allocate_credentials(&clicred); gnutls_certificate_set_retrieve_function2(clicred, cert_cb2); gnutls_certificate_set_retrieve_function2(clicred, NULL); - _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_NO_CERTIFICATE_FOUND, -1); + _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_CERTIFICATE_REQUIRED, -1); gnutls_certificate_free_credentials(clicred); gnutls_certificate_allocate_credentials(&clicred); gnutls_certificate_set_retrieve_function3(clicred, cert_cb3); gnutls_certificate_set_retrieve_function3(clicred, NULL); - _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_NO_CERTIFICATE_FOUND, -1); + _test_cli_serv(x509_cred, clicred, "NORMAL", "NORMAL", "localhost", NULL, NULL, NULL, 0, 1, GNUTLS_E_CERTIFICATE_REQUIRED, -1); gnutls_certificate_free_credentials(clicred); gnutls_certificate_free_credentials(x509_cred); 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 */ |