[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:
parent
555788b622
commit
ee7131614c
@ -479,7 +479,7 @@ static VALUE ossl_ec_key_check_key(VALUE self)
|
|||||||
static void
|
static void
|
||||||
ossl_ec_group_free(void *ptr)
|
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 = {
|
static const rb_data_type_t ossl_ec_group_type = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user