[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
This commit is contained in:
Kazuki Yamaguchi 2020-02-22 05:52:01 +09:00
parent 555788b622
commit ee7131614c

View File

@ -479,7 +479,7 @@ static VALUE ossl_ec_key_check_key(VALUE self)
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 = {