Line 0
Link Here
|
|
|
1 |
--- src/httperf.c.orig 2007-04-07 07:01:56 UTC |
2 |
+++ src/httperf.c |
3 |
@@ -78,6 +78,10 @@ |
4 |
#include <conn.h> |
5 |
#include <timer.h> |
6 |
|
7 |
+#ifdef __FreeBSD__ |
8 |
+#include <machine/floatingpoint.h> |
9 |
+#endif |
10 |
+ |
11 |
#ifdef HAVE_SSL |
12 |
# include <openssl/rand.h> |
13 |
#endif |
14 |
@@ -808,7 +812,12 @@ main (int argc, char **argv) |
15 |
SSLeay_add_ssl_algorithms (); |
16 |
|
17 |
/* for some strange reason, SSLv23_client_method () doesn't work here */ |
18 |
+#ifndef OPENSSL_NO_SSL3 |
19 |
ssl_ctx = SSL_CTX_new (SSLv3_client_method ()); |
20 |
+#else |
21 |
+ ssl_ctx = SSL_CTX_new (SSLv23_client_method ()); |
22 |
+ SSL_CTX_set_options (ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 ); |
23 |
+#endif |
24 |
if (!ssl_ctx) |
25 |
{ |
26 |
ERR_print_errors_fp (stderr); |