svn commit: r421903 - in head/sysutils/tlsdate: . files
John Marino
marino at FreeBSD.org
Mon Sep 12 04:02:44 UTC 2016
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()");
More information about the svn-ports-head
mailing list