sysutils/tlsdate: Add SSL flags and support no SSLv3 (LibreSSL)

Appproved by:	SSL blanket
This commit is contained in:
John Marino 2016-09-12 04:02:42 +00:00
parent cfaed04a72
commit 1d5ae97c6f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421903
2 changed files with 18 additions and 2 deletions

View file

@ -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= *

View file

@ -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()");