Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkey/ec: constify #584

Merged
merged 1 commit into from Dec 23, 2022
Merged

pkey/ec: constify #584

merged 1 commit into from Dec 23, 2022

Conversation

nobu
Copy link
Member

@nobu nobu commented Dec 23, 2022

No description provided.

@nobu nobu merged commit 804356a into ruby:master Dec 23, 2022
@nobu nobu deleted the constify branch December 23, 2022 02:40
@@ -483,7 +483,7 @@ static VALUE ossl_ec_key_check_key(VALUE self)
#ifdef HAVE_EVP_PKEY_CHECK
EVP_PKEY *pkey;
EVP_PKEY_CTX *pctx;
EC_KEY *ec;
const EC_KEY *ec;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be OSSL_3_const like in other places in this file (e.g. ossl_ec_key_get_private_key)? cc @rhenium

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, EC_KEY_get0_private_key() (the only user of this variable) takes a const pointer in all OpenSSL versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants