aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/openssl_missing.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-20 20:20:44 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-04-27 23:07:41 +0900
commitcdfbc60516bee476192efff6ff0eebed18b6cb1d (patch)
tree016d3d2823e3288deeb93b76abd2fb511af24f4c /ext/openssl/openssl_missing.h
parent9b7be63ad66f99b615185137086735cb1bb8cfff (diff)
downloadruby-cdfbc60516bee476192efff6ff0eebed18b6cb1d.tar.gz
ext/openssl: use EVP_MD_CTX_new() to allocate EVP_MD_CTX
Diffstat (limited to 'ext/openssl/openssl_missing.h')
-rw-r--r--ext/openssl/openssl_missing.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h
index 84bc93bafd..ce3e1ec740 100644
--- a/ext/openssl/openssl_missing.h
+++ b/ext/openssl/openssl_missing.h
@@ -73,6 +73,14 @@ int CRYPTO_memcmp(const volatile void * volatile in_a, const volatile void * vol
# 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
+
+#if !defined(HAVE_EVP_MD_CTX_FREE)
+# define EVP_MD_CTX_free EVP_MD_CTX_destroy
+#endif
+
#if !defined(HAVE_HMAC_CTX_NEW)
HMAC_CTX *HMAC_CTX_new(void);
#endif