summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-25 21:33:32 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-25 21:33:32 +0000
commitea38531beb3463b4df19af58ee484ca2f2a6c1c9 (patch)
tree53697c68102ac2563e2aad313895a5091fc50213
parentabae5ad1047d1f1394579c5a51a26c59b2aa2766 (diff)
downloadgnutls-ea38531beb3463b4df19af58ee484ca2f2a6c1c9.tar.gz
*** empty log message ***
-rw-r--r--src/tests.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests.c b/src/tests.c
index 9423ee4b18..21cb10d641 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -403,6 +403,9 @@ int ret;
}
+/* Advertize both TLS 1.0 and SSL 3.0 if the connection fails,
+ * but the previous SSL 3.0 test succeeded then disable TLS 1.0.
+ */
int test_tls1_2( gnutls_session session) {
int ret;
ADD_ALL_CIPHERS(session);
@@ -506,7 +509,7 @@ int ret;
ret = do_handshake( session);
if (ret!=SUCCEED) return ret;
-
+
if (tls1_ok!=0 && gnutls_protocol_get_version( session)==GNUTLS_SSL3)
return FAILED;