stunnel for kamikaze, contributed by coova, cleaned up by me. note: this requires...
[openwrt/svn-archive/archive.git] / net / stunnel / patches / 102-no-ssl2.patch
1 diff -baurN stunnel-4.16.orig/src/options.c stunnel-4.16/src/options.c
2 --- stunnel-4.16.orig/src/options.c 2006-11-03 16:50:59.000000000 +0100
3 +++ stunnel-4.16/src/options.c 2006-11-03 16:51:47.000000000 +0100
4 @@ -957,8 +957,10 @@
5 section->client_method=SSLv23_client_method;
6 section->server_method=SSLv23_server_method;
7 } else if(!strcasecmp(arg, "SSLv2")) {
8 +#ifndef OPENSSL_NO_SSL2
9 section->client_method=SSLv2_client_method;
10 section->server_method=SSLv2_server_method;
11 +#endif
12 } else if(!strcasecmp(arg, "SSLv3")) {
13 section->client_method=SSLv3_client_method;
14 section->server_method=SSLv3_server_method;