Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 04:02: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: r421903 - in head/sysutils/tlsdate: . files
Message-ID:  <201609120402.u8C42hBf033748@repo.freebsd.org>

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

Log:
  sysutils/tlsdate: Add SSL flags and support no SSLv3 (LibreSSL)
  
  Appproved by:	SSL blanket

Added:
  head/sysutils/tlsdate/files/
  head/sysutils/tlsdate/files/patch-src_tlsdate-helper.c   (contents, props changed)
Modified:
  head/sysutils/tlsdate/Makefile

Modified: head/sysutils/tlsdate/Makefile
==============================================================================
--- head/sysutils/tlsdate/Makefile	Mon Sep 12 03:21:15 2016	(r421902)
+++ head/sysutils/tlsdate/Makefile	Mon Sep 12 04:02:42 2016	(r421903)
@@ -16,8 +16,9 @@ OPTIONS_DEFINE=	DOCS
 
 GNU_CONFIGURE=	yes
 TEST_TARGET=	test
-USE_OPENSSL=	yes
-USES=		autoreconf libtool pkgconfig
+USES=		autoreconf libtool pkgconfig ssl
+CFLAGS+=	-I${OPENSSLINC}
+LDFLAGS+=	-L${OPENSSLLIB}
 
 PLIST_SUB=	PKGNAME=${PKGNAME}
 PORTDOCS=	*

Added: head/sysutils/tlsdate/files/patch-src_tlsdate-helper.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/tlsdate/files/patch-src_tlsdate-helper.c	Mon Sep 12 04:02:42 2016	(r421903)
@@ -0,0 +1,15 @@
+--- src/tlsdate-helper.c.orig	2015-05-28 18:49:40 UTC
++++ src/tlsdate-helper.c
+@@ -1133,10 +1133,12 @@ run_ssl (uint32_t *time_map, int time_is
+   {
+     verb ("V: using SSLv23_client_method()");
+     ctx = SSL_CTX_new(SSLv23_client_method());
++#ifndef OPENSSL_NO_SSL3
+   } else if (0 == strcmp("sslv3", protocol))
+   {
+     verb ("V: using SSLv3_client_method()");
+     ctx = SSL_CTX_new(SSLv3_client_method());
++#endif
+   } else if (0 == strcmp("tlsv1", protocol))
+   {
+     verb ("V: using TLSv1_client_method()");



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