pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/serf try to fix bulid failure with old OpenSSL (la...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ec7a732ed6a5
branches:  trunk
changeset: 621286:ec7a732ed6a5
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Jul 07 01:18:46 2013 +0000

description:
try to fix bulid failure with old OpenSSL (lack of SSL_clear_options).

diffstat:

 www/serf/distinfo                             |   3 ++-
 www/serf/patches/patch-buckets_ssl__buckets.c |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r e7935f8f212e -r ec7a732ed6a5 www/serf/distinfo
--- a/www/serf/distinfo Sun Jul 07 00:38:35 2013 +0000
+++ b/www/serf/distinfo Sun Jul 07 01:18:46 2013 +0000
@@ -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 -r e7935f8f212e -r ec7a732ed6a5 www/serf/patches/patch-buckets_ssl__buckets.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/serf/patches/patch-buckets_ssl__buckets.c     Sun Jul 07 01:18:46 2013 +0000
@@ -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.



Home | Main Index | Thread Index | Old Index