diff options
Diffstat (limited to 'src/lib/libssl/src/ssl/ssltest.c')
| -rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index a0e2af6647..4f80be8ee4 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
| @@ -150,8 +150,6 @@ | |||
| 150 | #include <stdlib.h> | 150 | #include <stdlib.h> |
| 151 | #include <string.h> | 151 | #include <string.h> |
| 152 | #include <time.h> | 152 | #include <time.h> |
| 153 | #include <inttypes.h> | ||
| 154 | #include <ctype.h> | ||
| 155 | 153 | ||
| 156 | #define USE_SOCKETS | 154 | #define USE_SOCKETS |
| 157 | #include "e_os.h" | 155 | #include "e_os.h" |
| @@ -545,8 +543,8 @@ int main(int argc, char *argv[]) | |||
| 545 | int comp = 0; | 543 | int comp = 0; |
| 546 | #ifndef OPENSSL_NO_COMP | 544 | #ifndef OPENSSL_NO_COMP |
| 547 | COMP_METHOD *cm = NULL; | 545 | COMP_METHOD *cm = NULL; |
| 548 | #endif | ||
| 549 | STACK_OF(SSL_COMP) *ssl_comp_methods = NULL; | 546 | STACK_OF(SSL_COMP) *ssl_comp_methods = NULL; |
| 547 | #endif | ||
| 550 | int test_cipherlist = 0; | 548 | int test_cipherlist = 0; |
| 551 | #ifdef OPENSSL_FIPS | 549 | #ifdef OPENSSL_FIPS |
| 552 | int fips_mode=0; | 550 | int fips_mode=0; |
| @@ -883,7 +881,13 @@ bad: | |||
| 883 | meth=SSLv23_method(); | 881 | meth=SSLv23_method(); |
| 884 | #else | 882 | #else |
| 885 | #ifdef OPENSSL_NO_SSL2 | 883 | #ifdef OPENSSL_NO_SSL2 |
| 886 | meth=SSLv3_method(); | 884 | if (tls1) |
| 885 | meth=TLSv1_method(); | ||
| 886 | else | ||
| 887 | if (ssl3) | ||
| 888 | meth=SSLv3_method(); | ||
| 889 | else | ||
| 890 | meth=SSLv23_method(); | ||
| 887 | #else | 891 | #else |
| 888 | meth=SSLv2_method(); | 892 | meth=SSLv2_method(); |
| 889 | #endif | 893 | #endif |
