ruby-changes:69402
From: Kazuki <ko1@a...>
Date: Mon, 25 Oct 2021 00:43:59 +0900 (JST)
Subject: [ruby-changes:69402] ee7131614c (master): [ruby/openssl] pkey/ec: use EC_GROUP_free() instead of EC_GROUP_clear_free()
https://git.ruby-lang.org/ruby.git/commit/?id=ee7131614c From ee7131614c584db6e469865e19a5842e0e48680a Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi <k@r...> Date: Sat, 22 Feb 2020 05:52:01 +0900 Subject: [ruby/openssl] pkey/ec: use EC_GROUP_free() instead of EC_GROUP_clear_free() EC_GROUP_clear_free() is deprecated in OpenSSL 3.0. EC_GROUP does not include any sensitive data, so we can safely use EC_GROUP_free() instead. https://github.com/ruby/openssl/commit/e93a5fdffc --- ext/openssl/ossl_pkey_ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c index b317e45d6d..db80d112a0 100644 --- a/ext/openssl/ossl_pkey_ec.c +++ b/ext/openssl/ossl_pkey_ec.c @@ -479,7 +479,7 @@ static VALUE ossl_ec_key_check_key(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_pkey_ec.c#L479 static void ossl_ec_group_free(void *ptr) { - EC_GROUP_clear_free(ptr); + EC_GROUP_free(ptr); } static const rb_data_type_t ossl_ec_group_type = { -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/