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

Backport of OpenSSL 3.0.0 & Python 3.10 fixes to 3.4.x #6000

Closed
wants to merge 13 commits into from

Conversation

tiran
Copy link
Contributor

@tiran tiran commented Apr 23, 2021

Backport of commit f08a7de and PR #5250 and PR #6042 to 3.4.x branch and on top of 3.4.7 tag.

I'm working on OpenSSL 3.0.0 support in C9S and thought that you may find the backport useful. I had minor conflicts in ci.yaml, backend.py, and ciphers.py.

Co-authored-by: Paul Kehrer [email protected]

@tiran tiran changed the title Backport of OpenSSL 3.0.0 fixes to 3.4.x Backport of OpenSSL 3.0.0 & Python 3.10 fixes to 3.4.x May 11, 2021
@tiran tiran force-pushed the 3.4.7-3.0.0 branch 2 times, most recently from d03bb7c to 0a164d2 Compare May 11, 2021 07:24
alex and others added 13 commits August 16, 2021 12:36
spurious failures and no resolution so far
* moar linkcheck ignores

* new alpine new python
This makes it easier to isolate regressions by running all tests
even if one fails.
- OpenSSL 3.0.0-beta2 now uses lib64 on X86_64
- fail on implicit function definition
* fix pkcs12 parse ordering. fixes pyca#5872

* remove an unneeded print

* simplify the test a bit more

* index

* black

* Update tests/hazmat/primitives/test_pkcs12.py

Co-authored-by: Alex Gaynor <[email protected]>

Co-authored-by: Alex Gaynor <[email protected]>
* 3.0.0 support

* almost...there...

* make mypy happy
…#5972)

* switch to using EVP_PKEY_derive instead of DH_compute_key in DH

Where checks are occurring is changing in OpenSSL 3.0 and this makes it
easier to be consistent (and is the API we should be using anyway). The
tests change because EVP_PKEY_derive now verifies that we have shared
parameters, which the test previously only verified by asserting that
the derived keys didn't match

* review feedback

* type ignores required for typeerror tests. some day i will remember this
Python 3.10 changed enum's object and string representation. PyCA
cryptography now uses a custom subclass of enum.Enum() will well-defined
__repr__ and __str__ from Python 3.9.

Related: https://bugs.python.org/issue40066
Fixes: pyca#5995
Signed-off-by: Christian Heimes <[email protected]>
remove it everywhere and assert on the code/lib/reason
@tiran
Copy link
Contributor Author

tiran commented Sep 30, 2021

cryptography 35.0.0 is out!

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.

4 participants