summaryrefslogtreecommitdiff
path: root/package/ruby/patches/patch-ext_openssl_ossl_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-05 15:34:35 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-05 15:34:35 +0200
commit3b76e79f14e279a6526809e630e45e4f760d77de (patch)
treebb479b57c7ad1362f05a0532a7133c0c5232dfeb /package/ruby/patches/patch-ext_openssl_ossl_h
parent9bfe4f2061f377306619fa479bc0e7adafb22125 (diff)
parent1879491b2b6e799b20ac06d1b510726eb200944f (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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);