diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 15:54:24 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-14 20:00:57 +0900 |
commit | 5b1c7cb59c827db967d8baffa776a291e3a25836 (patch) | |
tree | fe5e22922626b09cea687e3320b1350a1431c375 /ext/openssl/openssl_missing.h | |
parent | 7c76c205443cddc66e183bdaaaaf7df96be704f0 (diff) | |
download | ruby-5b1c7cb59c827db967d8baffa776a291e3a25836.tar.gz |
ext/openssl: BIGNUM and BN_GENCB is made opaque
Diffstat (limited to 'ext/openssl/openssl_missing.h')
-rw-r--r-- | ext/openssl/openssl_missing.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h index 2242eee05a..4daef149c4 100644 --- a/ext/openssl/openssl_missing.h +++ b/ext/openssl/openssl_missing.h @@ -48,6 +48,18 @@ int CRYPTO_memcmp(const volatile void * volatile in_a, const volatile void * vol #endif /* added in 1.1.0 */ +#if !defined(HAVE_BN_GENCB_NEW) +# define BN_GENCB_new() ((BN_GENCB *)OPENSSL_malloc(sizeof(BN_GENCB))) +#endif + +#if !defined(HAVE_BN_GENCB_FREE) +# define BN_GENCB_free(cb) OPENSSL_free(cb) +#endif + +#if !defined(HAVE_BN_GENCB_GET_ARG) +# define BN_GENCB_get_arg(cb) (cb)->arg +#endif + #if !defined(HAVE_EVP_MD_CTX_NEW) # define EVP_MD_CTX_new EVP_MD_CTX_create #endif |