opnsense-ports/sysutils/tlsdate/files/patch-src_tlsdate-helper.c
Franco Fichtner 33e98a2a58 */*: sync with upstream
Taken from: FreeBSD
2016-09-16 14:21:20 +02:00

15 lines
518 B
C

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