mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/tlsdate: Add SSL flags and support no SSLv3 (LibreSSL)
Appproved by: SSL blanket
This commit is contained in:
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
|
@ -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= *
|
||||
|
|
15
sysutils/tlsdate/files/patch-src_tlsdate-helper.c
Normal file
15
sysutils/tlsdate/files/patch-src_tlsdate-helper.c
Normal 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()");
|
Loading…
Add table
Reference in a new issue