Skip to content

Commit

Permalink
pkey/ec: use EC_GROUP_free() instead of EC_GROUP_clear_free()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhenium committed Oct 24, 2021
1 parent e2cc81f commit e93a5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/openssl/ossl_pkey_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e93a5fd

Please sign in to comment.