diff options
author | nahi <nahi@ruby-lang.org> | 2010-09-06 02:08:30 +0000 |
---|---|---|
committer | nahi <nahi@ruby-lang.org> | 2010-09-06 02:08:30 +0000 |
commit | 1a35b5c023a190591673fc76eb8612968be87e7b (patch) | |
tree | 61b324800755acd1055b8e2344d0f07131dc2865 /ext/openssl/openssl_missing.c | |
parent | 549b2ed7c34667afae9374683371e3b9265d708d (diff) | |
download | ruby-openssl-history-1a35b5c023a190591673fc76eb8612968be87e7b.tar.gz |
* Fixed wrong check of missing functions. Patch by Adrian Quark.
ref #3400
The patch contains following comment:
This patch should avoid unnecessary incompatibility with future
versions of Openssl. Changes suggested by bmaher_at_amazon.com.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/openssl_missing.c')
-rw-r--r-- | ext/openssl/openssl_missing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/openssl_missing.c b/ext/openssl/openssl_missing.c index 06e36b7..3ffe651 100644 --- a/ext/openssl/openssl_missing.c +++ b/ext/openssl/openssl_missing.c @@ -36,12 +36,13 @@ HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in) #endif /* NO_HMAC */ #if !defined(HAVE_X509_STORE_SET_EX_DATA) - int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data) { return CRYPTO_set_ex_data(&str->ex_data, idx, data); } +#endif +#if !defined(HAVE_X509_STORE_GET_EX_DATA) void *X509_STORE_get_ex_data(X509_STORE *str, int idx) { return CRYPTO_get_ex_data(&str->ex_data, idx); |