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

restore apis needed for a _ssl module when using cryptograhpy v2.7 #4969

Closed
wants to merge 2 commits into from
Closed

restore apis needed for a _ssl module when using cryptograhpy v2.7 #4969

wants to merge 2 commits into from

Conversation

mattip
Copy link

@mattip mattip commented Aug 14, 2019

PyPy uses cryptography to implement a pure-python _ssl stdlib module. After upgrading to v2.7 of cryptography, it turns out some API wrappers were removed that PyPy needed.

@alex suggested we collaborate to ensure future compatibility. I am not sure you want all the cruft of the python _ssl implementation in this repo. Perhaps it makes more sense to provide a new pyca/_ssl repo that would include the tests from the cpython stdlib test suite?

SSL_METHOD* (*SSLv3_server_method)(void) = NULL;
const SSL_METHOD* (*SSLv3_method)(void) = NULL;
const SSL_METHOD* (*SSLv3_client_method)(void) = NULL;
const SSL_METHOD* (*SSLv3_server_method)(void) = NULL;
Copy link
Author

Choose a reason for hiding this comment

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

bug fix

@@ -44,6 +44,8 @@

X509_CRL *PEM_read_bio_X509_CRL(BIO *, X509_CRL **, pem_password_cb *, void *);

X509 *PEM_read_bio_X509_AUX(BIO *, X509 **, pem_password_cb *, void *);
Copy link
Member

Choose a reason for hiding this comment

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

Can you drop this one. With python/cpython#15303 merge, it should be possibel to use PEM_read_bio_X509 in cryptography, which we already have.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed in pypy 7aed2cf1c9c0.

Copy link
Author

Choose a reason for hiding this comment

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

I will update the PR once I get a successful pypy build

@mattip
Copy link
Author

mattip commented Aug 15, 2019

PyPy also has pypy_win32_extra.py. It seems this is still needed. Should I add it to this PR?

Also one of our buildbots is running Ubuntu 14.04, which still needs static const int NID_X9_62_prime256v1 in nid.py.

@reaperhulk
Copy link
Member

We're still willing to help with this but since there's been no activity I'll close this for now.

@reaperhulk reaperhulk closed this Jul 5, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants