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

Stop reaching into X509_ALGOR #226

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Stop reaching into X509_ALGOR #226

merged 1 commit into from
Oct 23, 2023

Conversation

botovq
Copy link
Contributor

@botovq botovq commented Oct 21, 2023

While the struct is still public in all versions of OpenSSL and its forks, this may well change in the future. Prepare for that case and use the X509_ALGOR_get0() accessor which has been available with this signature since OpenSSL 1.1.

While the struct is still public in all versions of OpenSSL and its
forks, this may well change in the future. Prepare for that case and
use the X509_ALGOR_get0() accessor which has been available with this
signature since OpenSSL 1.1.
Copy link
Member

@sjaeckel sjaeckel left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

X509_ALGOR_get0() was already in OpenSSL 1.0.0 and has even been backported to 0.9.8h

Do you want to update the comment? :)

@botovq
Copy link
Contributor Author

botovq commented Oct 23, 2023 via email

@sjaeckel sjaeckel merged commit 7894d15 into strophe:master Oct 23, 2023
36 checks passed
@sjaeckel
Copy link
Member

... the "with this signature" does some work here. There were constness changes in 1.1.0:

thanks, I didn't pay attention to the signature change!

@sjaeckel sjaeckel added this to the next milestone Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants