patch-ext_openssl_ossl_h 501 B

12345678910111213141516171819
  1. --- ruby-1.9.1-p378.orig/ext/openssl/ossl.h 2008-09-26 05:05:47.000000000 +0200
  2. +++ ruby-1.9.1-p378/ext/openssl/ossl.h 2010-06-12 21:10:22.781613550 +0200
  3. @@ -109,6 +109,16 @@ extern VALUE eOSSLError;
  4. int string2hex(const unsigned char *, int, char **, int *);
  5. /*
  6. + * Compatibility
  7. + */
  8. +#if OPENSSL_VERSION_NUMBER >= 0x10000000L
  9. +#define OSSL_MORE_CONST const
  10. +#define STACK _STACK
  11. +#else
  12. +#define OSSL_MORE_CONST
  13. +#endif
  14. +
  15. +/*
  16. * Data Conversion
  17. */
  18. STACK_OF(X509) *ossl_x509_ary2sk0(VALUE);