Skip to content

Expose X509_V_* constants - #1202

Merged
alex merged 14 commits into
pyca:mainfrom
itamarst:1201-expose-x509-v-err-codes
Apr 29, 2023
Merged

alex merged 14 commits into
pyca:mainfrom
itamarst:1201-expose-x509-v-err-codes

Conversation

@itamarst

@itamarst itamarst commented Mar 27, 2023 •

Copy link
Copy Markdown
Contributor

Fixes #1201

The cryptography half of this is in pyca/cryptography#8626

Potential user hazard: As currently implemented, users of pyOpenSSL who depend on this may be setting up their users for weird errors if they happen to install cryptography 40. So possibly this should also include either:

  • Changing minimal required cryptography to 41, if/when Restore the x509 error verification codesΒ cryptography#8626 is merged and v41 released.
  • Or, don't change the minimal version, but do change cryptography dependency to forbid version 40, so you'd get versions before and after.
  • Or, just assume this functionality is so obscure no one is likely to hit this in practice and do nothing.

@reaperhulk

Copy link
Copy Markdown
Member

I think we're going to backport and release those bindings in 40.0.2. I think I'd prefer to avoid bumping up the minimum version as well, so we'll want to be more explicit (40.0.0 and 40.0.1) for the conditional branch. Please also add a comment that says when we bump to a 41+ minimum we can remove the branch πŸ˜„

@itamarst

Copy link
Copy Markdown
Contributor Author

GitHub is being very laggy :( There's a fix for the flake issue that will show up in a minute or so.

@itamarst

Copy link
Copy Markdown
Contributor Author

Anyway, how's this?

Comment thread src/OpenSSL/SSL.py Resolved
Comment thread src/OpenSSL/SSL.py Resolved
@reaperhulk

Copy link
Copy Markdown
Member

Looks like this needs a rebase and addressing the outstanding comments. We're going to do a release in the next few days so this can land if it gets done!

@itamarst

Copy link
Copy Markdown
Contributor Author

Ugh got distracted and didn't finish this. Will try to get to this tomorrow or next week.

@itamarst

itamarst commented Apr 28, 2023 •

Copy link
Copy Markdown
Contributor Author

OK should be ready for review again, assuming CI passes.

@itamarst

Copy link
Copy Markdown
Contributor Author

Can't tell if the docs issue is my fault or not.

@alex

alex commented Apr 28, 2023

Copy link
Copy Markdown
Member

not related, I'll do a PR momentarily to fix it.

Comment thread src/OpenSSL/SSL.py Resolved

@alex alex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One comment, besides that this LGTM.

@itamarst

Copy link
Copy Markdown
Contributor Author

Addressed.

@itamarst
itamarst requested a review from alex April 28, 2023 22:16
Comment thread CHANGELOG.rst Resolved
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
@alex
alex merged commit 2d94946 into pyca:main Apr 29, 2023
@pyca pyca deleted a comment Feb 2, 2026
@pyca pyca deleted a comment Feb 2, 2026
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.

Expose constants that are no longer available in latest cryptography

4 participants