Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 02:30:43 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421897 - in head/www/httest: . files
Message-ID:  <201609120230.u8C2UhMe096255@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Mon Sep 12 02:30:43 2016
New Revision: 421897
URL: https://svnweb.freebsd.org/changeset/ports/421897

Log:
  www/httest: Document SSL requirement and support LibreSSL
  
  Approved by:	SSL blanket

Added:
  head/www/httest/files/
  head/www/httest/files/patch-src_ssl__module.c   (contents, props changed)
Modified:
  head/www/httest/Makefile

Modified: head/www/httest/Makefile
==============================================================================
--- head/www/httest/Makefile	Mon Sep 12 02:20:51 2016	(r421896)
+++ head/www/httest/Makefile	Mon Sep 12 02:30:43 2016	(r421897)
@@ -27,7 +27,7 @@ CONFIGURE_ARGS=	--enable-lua-module \
 		--with-ssl="${OPENSSLLIB}"
 CPPFLAGS+=	-I${LUA_INCDIR}
 GNU_CONFIGURE=	yes
-USES=		iconv lua libtool bdb
+USES=		iconv lua libtool bdb ssl
 USE_OPENSSL=	yes
 USE_LDCONFIG=	yes
 

Added: head/www/httest/files/patch-src_ssl__module.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/httest/files/patch-src_ssl__module.c	Mon Sep 12 02:30:43 2016	(r421897)
@@ -0,0 +1,46 @@
+--- src/ssl_module.c.orig	2015-03-16 15:46:05 UTC
++++ src/ssl_module.c
+@@ -349,7 +349,7 @@ static void ssl_message_trace(int write_
+     case DTLS1_VERSION:
+       str_version = "DTLS 1.0";
+       break;
+-#if (OPENSSL_VERSION_NUMBER >= 0x1000100fL)
++#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && defined(DTLS1_BAD_VER)
+     case DTLS1_BAD_VER:
+       str_version = "DTLS 1.0 (bad)";
+       break;
+@@ -421,7 +421,7 @@ static void ssl_message_trace(int write_
+       version == TLS1_1_VERSION ||
+ #endif
+       version == DTLS1_VERSION
+-#if (OPENSSL_VERSION_NUMBER >= 0x1000100fL)
++#if OPENSSL_VERSION_NUMBER >= 0x1000100fL && defined(DTLS1_BAD_VER)
+       || version == DTLS1_BAD_VER
+ #endif
+ 	  ) {
+@@ -740,10 +740,12 @@ static int worker_set_client_method(work
+     config->meth = SSLv2_client_method();
+   }
+ #endif
++#ifndef OPENSSL_NO_SSL3
+   else if (strcasecmp(sslstr, "SSL3") == 0) {
+     is_ssl = 1;
+     config->meth = SSLv3_client_method();
+   }
++#endif
+   else if (strcasecmp(sslstr, "TLS1") == 0) {
+     is_ssl = 1;
+     config->meth = TLSv1_client_method();
+@@ -787,10 +789,12 @@ static int worker_set_server_method(work
+     config->meth = SSLv2_server_method();
+   }
+ #endif
++#ifndef OPENSSL_NO_SSL3
+   else if (strcasecmp(sslstr, "SSL3") == 0) {
+     is_ssl = 1;
+     config->meth = SSLv3_server_method();
+   }
++#endif
+   else if (strcasecmp(sslstr, "TLS1") == 0) {
+     is_ssl = 1;
+     config->meth = TLSv1_server_method();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609120230.u8C2UhMe096255>