Closed oz123 closed 1 year ago
Running under Python 3.10, I got this additional information:
AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv2_METHOD'. Did you mean: 'SSLv23_METHOD'?
With OpenSSL version 22.0.0 everything is fine:
~/svn/pyftpdlib {master}$ python3
Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
[ loading '/home/giampaolo/.pythonstart' ]
>>> from OpenSSL import SSL
>>> SSL.SSLv2_METHOD
1
>>>
>>>>>> import OpenSSL
>>> OpenSSL.__version__
'22.0.0'
>>>
The problem appeared with 22.1.0:
>>> import OpenSSL
>>> OpenSSL.__version__
'22.1.0'
>>> from OpenSSL import SSL
>>> SSL.SSLv2_METHOD
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv2_METHOD'
>>>
Fixed. I just release a new pyftpdlib version on PYPI.
In
pyftpdlib.handlers.TLS_FTPHandler'