2008-07-06 11:09:56 +00:00
|
|
|
--- a/src/options.c
|
|
|
|
+++ b/src/options.c
|
2010-05-13 00:47:17 +00:00
|
|
|
@@ -1234,8 +1234,10 @@ static char *parse_service_option(CMD cm
|
2009-08-09 10:44:52 +00:00
|
|
|
section->client_method=(SSL_METHOD *)SSLv23_client_method();
|
|
|
|
section->server_method=(SSL_METHOD *)SSLv23_server_method();
|
2006-11-21 00:33:42 +00:00
|
|
|
} else if(!strcasecmp(arg, "SSLv2")) {
|
|
|
|
+#ifndef OPENSSL_NO_SSL2
|
2009-08-09 10:44:52 +00:00
|
|
|
section->client_method=(SSL_METHOD *)SSLv2_client_method();
|
|
|
|
section->server_method=(SSL_METHOD *)SSLv2_server_method();
|
2006-11-21 00:33:42 +00:00
|
|
|
+#endif
|
|
|
|
} else if(!strcasecmp(arg, "SSLv3")) {
|
2009-08-09 10:44:52 +00:00
|
|
|
section->client_method=(SSL_METHOD *)SSLv3_client_method();
|
|
|
|
section->server_method=(SSL_METHOD *)SSLv3_server_method();
|