diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-25 21:33:32 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-25 21:33:32 +0000 |
commit | ea38531beb3463b4df19af58ee484ca2f2a6c1c9 (patch) | |
tree | 53697c68102ac2563e2aad313895a5091fc50213 | |
parent | abae5ad1047d1f1394579c5a51a26c59b2aa2766 (diff) | |
download | gnutls-ea38531beb3463b4df19af58ee484ca2f2a6c1c9.tar.gz |
*** empty log message ***
-rw-r--r-- | src/tests.c | 5 |
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; |