diff options
| author | miod <> | 2014-04-13 15:16:37 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-13 15:16:37 +0000 |
| commit | 25175e3da5ec29dca5edfe32f588ea68b17071c9 (patch) | |
| tree | af609a7374a1d1f305a0380423258452f82a8cd7 /src/lib/libssl/src/ssl/ssltest.c | |
| parent | adb31f466163d59ad933cf9d299ce6c610f1cff3 (diff) | |
| download | openbsd-25175e3da5ec29dca5edfe32f588ea68b17071c9.tar.gz openbsd-25175e3da5ec29dca5edfe32f588ea68b17071c9.tar.bz2 openbsd-25175e3da5ec29dca5edfe32f588ea68b17071c9.zip | |
Import OpenSSL 1.0.1g
Diffstat (limited to 'src/lib/libssl/src/ssl/ssltest.c')
| -rw-r--r-- | src/lib/libssl/src/ssl/ssltest.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libssl/src/ssl/ssltest.c b/src/lib/libssl/src/ssl/ssltest.c index 0f8fd3902d..4f80be8ee4 100644 --- a/src/lib/libssl/src/ssl/ssltest.c +++ b/src/lib/libssl/src/ssl/ssltest.c | |||
| @@ -543,8 +543,8 @@ int main(int argc, char *argv[]) | |||
| 543 | int comp = 0; | 543 | int comp = 0; |
| 544 | #ifndef OPENSSL_NO_COMP | 544 | #ifndef OPENSSL_NO_COMP |
| 545 | COMP_METHOD *cm = NULL; | 545 | COMP_METHOD *cm = NULL; |
| 546 | #endif | ||
| 547 | STACK_OF(SSL_COMP) *ssl_comp_methods = NULL; | 546 | STACK_OF(SSL_COMP) *ssl_comp_methods = NULL; |
| 547 | #endif | ||
| 548 | int test_cipherlist = 0; | 548 | int test_cipherlist = 0; |
| 549 | #ifdef OPENSSL_FIPS | 549 | #ifdef OPENSSL_FIPS |
| 550 | int fips_mode=0; | 550 | int fips_mode=0; |
| @@ -881,7 +881,13 @@ bad: | |||
| 881 | meth=SSLv23_method(); | 881 | meth=SSLv23_method(); |
| 882 | #else | 882 | #else |
| 883 | #ifdef OPENSSL_NO_SSL2 | 883 | #ifdef OPENSSL_NO_SSL2 |
| 884 | 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(); | ||
| 885 | #else | 891 | #else |
| 886 | meth=SSLv2_method(); | 892 | meth=SSLv2_method(); |
| 887 | #endif | 893 | #endif |
