packages/net/stunnel/patches/102-no-ssl2.patch
nico 17628c1113 [packages] stunnel: update to 4.33 (closes: #7296)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-13 00:47:17 +00:00

14 lines
673 B
Diff

--- a/src/options.c
+++ b/src/options.c
@@ -1234,8 +1234,10 @@ static char *parse_service_option(CMD cm
section->client_method=(SSL_METHOD *)SSLv23_client_method();
section->server_method=(SSL_METHOD *)SSLv23_server_method();
} else if(!strcasecmp(arg, "SSLv2")) {
+#ifndef OPENSSL_NO_SSL2
section->client_method=(SSL_METHOD *)SSLv2_client_method();
section->server_method=(SSL_METHOD *)SSLv2_server_method();
+#endif
} else if(!strcasecmp(arg, "SSLv3")) {
section->client_method=(SSL_METHOD *)SSLv3_client_method();
section->server_method=(SSL_METHOD *)SSLv3_server_method();