[147516] trunk/dports/net/squid
jmr at macports.org
jmr at macports.org
Wed Apr 6 09:10:13 PDT 2016
Revision: 147516
https://trac.macports.org/changeset/147516
Author: jmr at macports.org
Date: 2016-04-06 09:10:13 -0700 (Wed, 06 Apr 2016)
Log Message:
-----------
squid: fix building against current openssl (#51073)
Modified Paths:
--------------
trunk/dports/net/squid/Portfile
Added Paths:
-----------
trunk/dports/net/squid/files/src__ssl_support.c.diff
Modified: trunk/dports/net/squid/Portfile
===================================================================
--- trunk/dports/net/squid/Portfile 2016-04-06 14:02:54 UTC (rev 147515)
+++ trunk/dports/net/squid/Portfile 2016-04-06 16:10:13 UTC (rev 147516)
@@ -37,7 +37,8 @@
use_bzip2 yes
patchfiles patch-cf.data.pre.diff \
patch-configure.diff \
- patch-pam_auth.c.diff
+ patch-pam_auth.c.diff \
+ src__ssl_support.c.diff
depends_lib port:zlib
Added: trunk/dports/net/squid/files/src__ssl_support.c.diff
===================================================================
--- trunk/dports/net/squid/files/src__ssl_support.c.diff (rev 0)
+++ trunk/dports/net/squid/files/src__ssl_support.c.diff 2016-04-06 16:10:13 UTC (rev 147516)
@@ -0,0 +1,40 @@
+--- src/ssl_support.c.orig 2010-03-15 04:20:45.000000000 +1100
++++ src/ssl_support.c 2016-04-07 02:04:53.000000000 +1000
+@@ -446,10 +446,6 @@ sslCreateServerContext(const char *certf
+ ERR_clear_error();
+ debug(83, 1) ("Initialising SSL.\n");
+ switch (version) {
+- case 2:
+- debug(83, 5) ("Using SSLv2.\n");
+- method = SSLv2_server_method();
+- break;
+ case 3:
+ debug(83, 5) ("Using SSLv3.\n");
+ method = SSLv3_server_method();
+@@ -459,6 +455,7 @@ sslCreateServerContext(const char *certf
+ method = TLSv1_server_method();
+ break;
+ case 1:
++ case 2:
+ default:
+ debug(83, 5) ("Using SSLv2/SSLv3.\n");
+ method = SSLv23_server_method();
+@@ -609,10 +606,6 @@ sslCreateClientContext(const char *certf
+ ERR_clear_error();
+ debug(83, 1) ("Initialising SSL.\n");
+ switch (version) {
+- case 2:
+- debug(83, 5) ("Using SSLv2.\n");
+- method = SSLv2_client_method();
+- break;
+ case 3:
+ debug(83, 5) ("Using SSLv3.\n");
+ method = SSLv3_client_method();
+@@ -622,6 +615,7 @@ sslCreateClientContext(const char *certf
+ method = TLSv1_client_method();
+ break;
+ case 1:
++ case 2:
+ default:
+ debug(83, 5) ("Using SSLv2/SSLv3.\n");
+ method = SSLv23_client_method();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160406/191e8c1a/attachment-0001.html>
More information about the macports-changes
mailing list