Disable SSLv2 if not supported by the installed version of OpenSSL.
--- a/src/worker.c
+++ b/src/worker.c
@@ -459,10 +459,12 @@
     is_ssl = 1;
     worker->meth = SSLv23_client_method();
   }
+#ifndef OPENSSL_NO_SSL2
   else if (strcasecmp(sslstr, "SSL2") == 0) {
     is_ssl = 1;
     worker->meth = SSLv2_client_method();
   }
+#endif
   else if (strcasecmp(sslstr, "SSL3") == 0) {
     is_ssl = 1;
     worker->meth = SSLv3_client_method();
@@ -488,10 +490,12 @@
     is_ssl = 1;
     worker->meth = SSLv23_server_method();
   }
+#ifndef OPENSSL_NO_SSL2
   else if (strcasecmp(sslstr, "SSL2") == 0) {
     is_ssl = 1;
     worker->meth = SSLv2_server_method();
   }
+#endif
   else if (strcasecmp(sslstr, "SSL3") == 0) {
     is_ssl = 1;
     worker->meth = SSLv3_server_method();
--- a/src/httest.c
+++ b/src/httest.c
@@ -1727,11 +1727,13 @@
     self->meth = SSLv23_server_method();
     portname += 4;
   }
+#ifndef OPENSSL_NO_SSL2
   else if (strncmp(portname, "SSL2:", 4) == 0) {
     self->is_ssl = 1;
     self->meth = SSLv2_server_method();
     portname += 5;
   }
+#endif
   else if (strncmp(portname, "SSL3:", 4) == 0) {
     self->is_ssl = 1;
     self->meth = SSLv3_server_method();
