--- httest-2.0.7.orig/src/worker.c
+++ httest-2.0.7/src/worker.c
@@ -453,10 +453,12 @@ int worker_set_method(worker_t * worker,
     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();
--- httest-2.0.7.orig/src/httest.c
+++ httest-2.0.7/src/httest.c
@@ -1715,11 +1715,13 @@ static void * APR_THREAD_FUNC worker_thr
     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();
