From 93e1583d735bac916ac815ee2737a9596dccad0f Mon Sep 17 00:00:00 2001 From: emboss Date: Sun, 26 Jun 2011 01:32:03 +0000 Subject: * ext/openssl/extconf.rb * ext/openssl/ossl_missing.h/.c: add ASN1_put_eoc if missing. * ext/openssl/ossl_asn1.c: introduce ossl_asn1_object_size and ossl_asn1_put_object to wrap functionality depending on OpenSSL version in use. Fixes [ Ruby 1.9 - Bug #4916 ] reported by Hiroshi Nakamura. [ruby-core:37286] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/openssl_missing.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/openssl/openssl_missing.h') diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h index 257089cce8..3635f88b73 100644 --- a/ext/openssl/openssl_missing.h +++ b/ext/openssl/openssl_missing.h @@ -185,6 +185,10 @@ char *CONF_get1_default_config_file(void); int PEM_def_callback(char *buf, int num, int w, void *key); #endif +#if !defined(HAVE_ASN1_PUT_EOC) +int ASN1_put_eoc(unsigned char **pp); +#endif + #if defined(__cplusplus) } #endif -- cgit v1.2.3