summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-29 14:24:54 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-11-14 15:00:33 +0100
commitf3e3889fa3c7ff32ba6917e80dbf2dc28e1cc9b6 (patch)
tree67044ef202a431b94a904e636de62c7ed900f7f0
parente54aed5dd8a2b68d5a142de44909642ee6b2a8a4 (diff)
downloadgnutls-f3e3889fa3c7ff32ba6917e80dbf2dc28e1cc9b6.tar.gz
tests: rehandshake tests were restricted to TLS1.2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--tests/Makefile.am6
-rw-r--r--tests/tls12-rehandshake-cert-2.c (renamed from tests/tls-rehandshake-cert-2.c)4
-rw-r--r--tests/tls12-rehandshake-cert-3.c (renamed from tests/tls-rehandshake-cert-3.c)4
-rw-r--r--tests/tls12-rehandshake-cert.c (renamed from tests/tls-rehandshake-cert.c)4
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 961d6e2515..37d515a021 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -100,9 +100,9 @@ ctests += mini-record-2 simple gc set_pkcs12_cred cert certuniqueid tls-neg-ext-
crq_key_id x509sign-verify sign-verify cve-2009-1415 cve-2009-1416 \
tls10-server-kx-neg tls11-server-kx-neg tls12-server-kx-neg ssl30-server-kx-neg \
tls12-cipher-neg tls11-cipher-neg tls10-cipher-neg ssl30-cipher-neg \
- crq_apis init_roundtrip pkcs12_s2k_pem dn2 mini-eagain tls-rehandshake-cert-3 \
+ crq_apis init_roundtrip pkcs12_s2k_pem dn2 mini-eagain tls12-rehandshake-cert-3 \
nul-in-x509-names x509_altname pkcs12_encode mini-x509 \
- tls-rehandshake-cert rng-fork mini-eagain-dtls resume-dtls \
+ tls12-rehandshake-cert rng-fork mini-eagain-dtls resume-dtls \
x509cert x509cert-tl infoaccess mini-dtls-hello-verify sign-verify-ed25519-rfc8080 \
trustdb-tofu dtls-rehandshake-anon mini-alpn mini-dtls-large \
mini-termination mini-x509-cas mini-x509-2 pkcs12_simple \
@@ -116,7 +116,7 @@ ctests += mini-record-2 simple gc set_pkcs12_cred cert certuniqueid tls-neg-ext-
fips-test mini-global-load name-constraints x509-extensions \
long-session-id mini-x509-callbacks-intr mini-dtls-lowmtu \
crlverify mini-dtls-discard init_fds mini-record-failure memset \
- tls-rehandshake-cert-2 custom-urls set_x509_key_mem set_x509_key_file \
+ tls12-rehandshake-cert-2 custom-urls set_x509_key_mem set_x509_key_file \
mini-chain-unsorted x509-verify-with-crl mini-dtls-mtu privkey-verify-broken \
mini-dtls-record-asym key-import-export priority-set priority-set2 \
pubkey-import-export sign-is-secure spki spki-abstract rsa-rsa-pss \
diff --git a/tests/tls-rehandshake-cert-2.c b/tests/tls12-rehandshake-cert-2.c
index cd89b8fe62..ab48556110 100644
--- a/tests/tls-rehandshake-cert-2.c
+++ b/tests/tls12-rehandshake-cert-2.c
@@ -94,7 +94,7 @@ static void client(int fd, unsigned test)
gnutls_handshake_set_timeout(session, 20 * 1000);
/* Use default priorities */
- gnutls_priority_set_direct(session, "NORMAL", NULL);
+ gnutls_priority_set_direct(session, "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.1:+VERS-TLS1.2", NULL);
/* put the anonymous credentials to the current session
*/
@@ -235,7 +235,7 @@ static void server(int fd, unsigned test)
/* avoid calling all the priority functions, since the defaults
* are adequate.
*/
- gnutls_priority_set_direct(session, "NORMAL", NULL);
+ gnutls_priority_set_direct(session, "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.1:+VERS-TLS1.2", NULL);
gnutls_credentials_set(session, GNUTLS_CRD_ANON, anoncred);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred);
diff --git a/tests/tls-rehandshake-cert-3.c b/tests/tls12-rehandshake-cert-3.c
index 8ca5b39c00..b3c827cfaf 100644
--- a/tests/tls-rehandshake-cert-3.c
+++ b/tests/tls12-rehandshake-cert-3.c
@@ -95,7 +95,7 @@ static void client(int fd)
gnutls_handshake_set_timeout(session, 20 * 1000);
/* Use default priorities */
- gnutls_priority_set_direct(session, "NORMAL", NULL);
+ gnutls_priority_set_direct(session, "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2:+VERS-TLS1.1", NULL);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred);
@@ -191,7 +191,7 @@ static void server(int fd)
/* avoid calling all the priority functions, since the defaults
* are adequate.
*/
- gnutls_priority_set_direct(session, "NORMAL", NULL);
+ gnutls_priority_set_direct(session, "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2:+VERS-TLS1.1", NULL);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred);
gnutls_certificate_server_set_request(session, GNUTLS_CERT_REQUIRE);
diff --git a/tests/tls-rehandshake-cert.c b/tests/tls12-rehandshake-cert.c
index 98e3d12be8..00a7d381c5 100644
--- a/tests/tls-rehandshake-cert.c
+++ b/tests/tls12-rehandshake-cert.c
@@ -68,7 +68,7 @@ void doit(void)
gnutls_init(&server, GNUTLS_SERVER);
gnutls_credentials_set(server, GNUTLS_CRD_CERTIFICATE,
serverx509cred);
- gnutls_priority_set_direct(server, "NORMAL", NULL);
+ gnutls_priority_set_direct(server, "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.1:+VERS-TLS1.2", NULL);
gnutls_transport_set_push_function(server, server_push);
gnutls_transport_set_pull_function(server, server_pull);
gnutls_transport_set_ptr(server, server);
@@ -78,7 +78,7 @@ void doit(void)
gnutls_init(&client, GNUTLS_CLIENT);
gnutls_credentials_set(client, GNUTLS_CRD_CERTIFICATE,
clientx509cred);
- gnutls_priority_set_direct(client, "NORMAL", NULL);
+ gnutls_priority_set_direct(client, "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.1:+VERS-TLS1.2", NULL);
gnutls_transport_set_push_function(client, client_push);
gnutls_transport_set_pull_function(client, client_pull);
gnutls_transport_set_ptr(client, client);