summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-07-07 01:18:46 +0000
committerobache <obache@pkgsrc.org>2013-07-07 01:18:46 +0000
commit18a4b24ce7a8c5fb25c5bdac580ede2209dcd13c (patch)
treef3d8d5c512e1251a687de641da2c2968b42d6ef7 /www
parent6d071b343fbec571f8b01ad2142bffc036bf1295 (diff)
downloadpkgsrc-18a4b24ce7a8c5fb25c5bdac580ede2209dcd13c.tar.gz
try to fix bulid failure with old OpenSSL (lack of SSL_clear_options).
Diffstat (limited to 'www')
-rw-r--r--www/serf/distinfo3
-rw-r--r--www/serf/patches/patch-buckets_ssl__buckets.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/www/serf/distinfo b/www/serf/distinfo
index cef1181d1d4..53897101c18 100644
--- a/www/serf/distinfo
+++ b/www/serf/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2013/07/04 17:17:28 wiz Exp $
+$NetBSD: distinfo,v 1.6 2013/07/07 01:18:46 obache Exp $
SHA1 (serf-1.2.1.tar.bz2) = f65fbbd72926c8e7cf0dbd4ada03b0d226f461fd
RMD160 (serf-1.2.1.tar.bz2) = 49036f303a7737981276fa451a66a3b5bccc201f
Size (serf-1.2.1.tar.bz2) = 190464 bytes
+SHA1 (patch-buckets_ssl__buckets.c) = f940e1703d3a8cf879d5a563cf57826f027ed8e1
diff --git a/www/serf/patches/patch-buckets_ssl__buckets.c b/www/serf/patches/patch-buckets_ssl__buckets.c
new file mode 100644
index 00000000000..824280af49d
--- /dev/null
+++ b/www/serf/patches/patch-buckets_ssl__buckets.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-buckets_ssl__buckets.c,v 1.1 2013/07/07 01:18:46 obache Exp $
+
+* for old OpenSSL, lack of SSL_clear_options.
+
+--- buckets/ssl_buckets.c.orig 2013-06-03 17:06:45.000000000 +0000
++++ buckets/ssl_buckets.c
+@@ -64,6 +64,10 @@
+ #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
+ #endif
+
++#if defined(SSL_OP_NO_COMPRESSION) && !defined(SSL_clear_options)
++#define SSL_clear_options(ssl, op) \
++ SSL_set_options((ssl), SSL_get_options((ssl)) & ~(op))
++#endif
+
+ /*
+ * Here's an overview of the SSL bucket's relationship to OpenSSL and serf.