You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a mismatch between documentation of OpenSSL.SSL and the real behavior.
Steps to reproduce:
install pyopenssl
open a python shell
In the shell, execute: import OpenSSL
In the shell, execute: print(OpenSSL.SSL.FILETYPE_PEM)
In the shell, execute: print(OpenSSL.SSL.FILETYPE_ASN1)
What happens:
import OpenSSL
>>> print(OpenSSL.SSL.FILETYPE_PEM)
1
>>> print(OpenSSL.SSL.FILETYPE_ASN1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'OpenSSL.SSL' has no attribute 'FILETYPE_ASN1'
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 from OpenSSL.crypto.FILETYPE_ASN1 works fine (workaround).
Installed version: pyopenssl-23.1.1
The text was updated successfully, but these errors were encountered:
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: