aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/openssl_missing.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-04-05 00:39:04 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-04-05 00:42:06 +0900
commit81027b7463b02d3a4ea50f1a4c7a0ae1e6ea623b (patch)
tree5d743199926de165aee6ce5a130f795d24b147eb /ext/openssl/openssl_missing.h
parent1800a8d5ebafa47f14a604a3f12a3a6397b0b4ad (diff)
downloadruby-openssl-81027b7463b02d3a4ea50f1a4c7a0ae1e6ea623b.tar.gz
pkey: remove unused ossl_generate_cb_2() helper functionky/pkey-refactor-generate
The previous series of commits re-implemented key generation with the low level API with the EVP API. The BN_GENCB-based callback function is no longer used.
Diffstat (limited to 'ext/openssl/openssl_missing.h')
-rw-r--r--ext/openssl/openssl_missing.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h
index 5586f965..4d9b8801 100644
--- a/ext/openssl/openssl_missing.h
+++ b/ext/openssl/openssl_missing.h
@@ -13,18 +13,6 @@
#include "ruby/config.h"
/* 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