opnsense-ports/net-p2p/uhub/files/patch-src__network__openssl.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
385 B
C

--- src/network/openssl.c.orig
+++ src/network/openssl.c
@@ -106,10 +106,12 @@
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;