-
Notifications
You must be signed in to change notification settings - Fork 421
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
Missing export of OpenSSL.SSL.FILETYPE_ASN1
#1217
Comments
We'd be happy to take a PR to fix this (Either the documentation or adding the export from crypto to SSL). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a mismatch between documentation of
OpenSSL.SSL
and the real behavior.Steps to reproduce:
import OpenSSL
print(OpenSSL.SSL.FILETYPE_PEM)
print(OpenSSL.SSL.FILETYPE_ASN1)
What happens:
What should happen:
no error. The documentation claims that
FILETYPE_ASN1
should be available, so it should work.Additional info:
The code behavior is expected, see the imports of SSL.py from
OpenSSL.crypto
, this looks like a mismatch between documentation and code to me. Reading the value fromOpenSSL.crypto.FILETYPE_ASN1
works fine (workaround).Installed version:
pyopenssl-23.1.1
The text was updated successfully, but these errors were encountered: