mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
- Add LICENSE_FILE - Drop uneeded flags - Remove SQLITE option, sqlite support is not conditional - Switch to opt_CMAKE_BOOL - Simplify installation
15 lines
450 B
C
15 lines
450 B
C
--- src/network/openssl.c.orig 2014-08-06 18:56:07 UTC
|
|
+++ src/network/openssl.c
|
|
@@ -106,10 +106,12 @@ static const SSL_METHOD* get_ssl_method(
|
|
|
|
if (!strcmp(tls_version, "1.0"))
|
|
return TLSv1_method();
|
|
+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL
|
|
if (!strcmp(tls_version, "1.1"))
|
|
return TLSv1_1_method();
|
|
if (!strcmp(tls_version, "1.2"))
|
|
return TLSv1_2_method();
|
|
+#endif
|
|
|
|
LOG_ERROR("Unable to recognize tls_version.");
|
|
return 0;
|