mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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.
e93a5fdffc
This commit is contained in:
parent
555788b622
commit
ee7131614c
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue