summaryrefslogtreecommitdiff
path: root/package/ruby/patches/patch-ext_openssl_ossl_h
diff options
context:
space:
mode:
Diffstat (limited to 'package/ruby/patches/patch-ext_openssl_ossl_h')
-rw-r--r--package/ruby/patches/patch-ext_openssl_ossl_h19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/ruby/patches/patch-ext_openssl_ossl_h b/package/ruby/patches/patch-ext_openssl_ossl_h
new file mode 100644
index 000000000..b33b476aa
--- /dev/null
+++ b/package/ruby/patches/patch-ext_openssl_ossl_h
@@ -0,0 +1,19 @@
+--- ruby-1.9.1-p378.orig/ext/openssl/ossl.h 2008-09-26 05:05:47.000000000 +0200
++++ ruby-1.9.1-p378/ext/openssl/ossl.h 2010-06-12 21:10:22.781613550 +0200
+@@ -109,6 +109,16 @@ extern VALUE eOSSLError;
+ int string2hex(const unsigned char *, int, char **, int *);
+
+ /*
++ * Compatibility
++ */
++#if OPENSSL_VERSION_NUMBER >= 0x10000000L
++#define OSSL_MORE_CONST const
++#define STACK _STACK
++#else
++#define OSSL_MORE_CONST
++#endif
++
++/*
+ * Data Conversion
+ */
+ STACK_OF(X509) *ossl_x509_ary2sk0(VALUE);