summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-16 09:52:31 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-16 09:52:31 +0000
commit2dce7b65470ea03cc98b2e1f1e0f72e67080687c (patch)
tree80034caea2028f378141d30d7fd21dc40ba84b54
parent56b5adfdb79fc100f17c2143ccb08a4c192a5c92 (diff)
downloadgnutls-2dce7b65470ea03cc98b2e1f1e0f72e67080687c.tar.gz
works better in buggy servers.
-rw-r--r--src/tests.c4
-rw-r--r--src/tls_test.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tests.c b/src/tests.c
index f305592882..ff969111fe 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000,2001,2002 Nikos Mavroyanopoulos
+ * Copyright (C) 2000,2001,2002,2003 Nikos Mavroyanopoulos
*
* This file is part of GNUTLS.
*
@@ -416,7 +416,7 @@ int ret;
ret = do_handshake( session);
if (ret==FAILED) {
/* disable TLS 1.0 */
- if (tls1_ok!=0) {
+ if (ssl3_ok!=0) {
protocol_priority[0] = GNUTLS_SSL3;
protocol_priority[1] = 0;
}
diff --git a/src/tls_test.c b/src/tls_test.c
index b37e722da6..9c4b3b2768 100644
--- a/src/tls_test.c
+++ b/src/tls_test.c
@@ -79,13 +79,13 @@ typedef struct {
static const TLS_TEST tls_tests[] = {
{ "for TLS 1.0 support", test_tls1, "yes", "no", "dunno" },
{ "for SSL 3.0 support", test_ssl3, "yes", "no", "dunno" },
+ { "whether we need to disable TLS 1.0", test_tls1_2, "no", "yes", "dunno" },
{ "for certificate information", test_certificate, "", "", "" },
{ "for trusted CAs", test_server_cas, "", "", "" },
{ "for version rollback bug in RSA PMS", test_rsa_pms, "no", "yes", "dunno" },
{ "for version rollback bug in Client Hello", test_version_rollback, "no", "yes", "dunno" },
/* this test will disable TLS 1.0 if the server is
* buggy */
- { "whether we need to disable TLS 1.0", test_tls1_2, "no", "yes", "dunno" },
{ "whether the server can accept Hello Extensions", test_hello_extension, "yes", "no", "dunno"},
{ "whether the server can accept cipher suites not in SSL 3.0 spec", test_unknown_ciphersuites, "yes", "no", "dunno"},
{ "whether the server understands TLS closure alerts", test_bye, "yes", "no", "partially"},