diff options
Diffstat (limited to 'tests/dhex509self.c')
-rw-r--r-- | tests/dhex509self.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/dhex509self.c b/tests/dhex509self.c index bf5d0b25df..8a21ba097a 100644 --- a/tests/dhex509self.c +++ b/tests/dhex509self.c @@ -99,7 +99,7 @@ static void client(int sd) gnutls_init(&session, GNUTLS_CLIENT); /* Use default priorities */ - gnutls_priority_set_direct(session, "NORMAL:-KX-ALL:+DHE-RSA", NULL); + gnutls_priority_set_direct(session, "NORMAL:-VERS-ALL:+VERS-TLS1.2:-KX-ALL:+DHE-RSA", NULL); /* put the x509 credentials to the current session */ @@ -217,7 +217,7 @@ static gnutls_session_t initialize_tls_session(void) /* avoid calling all the priority functions, since the defaults * are adequate. */ - gnutls_priority_set_direct(session, "NORMAL:-KX-ALL:+DHE-RSA", NULL); + gnutls_priority_set_direct(session, "NORMAL:-VERS-ALL:+VERS-TLS1.2:-KX-ALL:+DHE-RSA", NULL); gnutls_handshake_set_timeout(session, 20 * 1000); gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred); @@ -385,8 +385,11 @@ void doit(void) server(sockets[0]); wait(&status); - } else + check_wait_status(status); + } else { client(sockets[1]); + exit(0); + } } #endif /* _WIN32 */ |