drbild / sslpsk

Adds TLS-PSK support to the Python ssl package
Apache License 2.0
24 stars 32 forks source link

[1.0.0] buils fails with Python >= 3.12 #31

Open tuxmaster5000 opened 2 months ago

tuxmaster5000 commented 2 months ago

====================================================================== ERROR: testClient (test_sslpsk.SSLPSKTest.testClient)

Traceback (most recent call last): File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/test/test_sslpsk.py", line 80, in testClient self.client_psk_sock = sslpsk.wrap_socket(self.client_socket, psk=self.psk, ciphers='PSK-AES256-CBC-SHA', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/sslpsk.py", line 99, in wrap_socket sock = ssl.wrap_socket(*args, **kwargs) ^^^^^^^^^^^^^^^ AttributeError: module 'ssl' has no attribute 'wrap_socket'


Ran 1 test in 0.012s

FAILED (errors=1) sock = ssl.wrap_socket(*args, **kwargs) ^^^^^^^^^^^^^^^ AttributeError: module 'ssl' has no attribute 'wrap_socket' testClient (sslpsk.test.test_sslpsk.SSLPSKTest.testClient) ... Exception in thread Thread-2 (accept): Traceback (most recent call last): File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner ERROR

====================================================================== ERROR: testClient (sslpsk.test.test_sslpsk.SSLPSKTest.testClient)

Traceback (most recent call last): File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/test/test_sslpsk.py", line 80, in testClient self.client_psk_sock = sslpsk.wrap_socket(self.client_socket, psk=self.psk, ciphers='PSK-AES256-CBC-SHA', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/sslpsk.py", line 99, in wrap_socket sock = ssl.wrap_socket(*args, **kwargs) ^^^^^^^^^^^^^^^ AttributeError: module 'ssl' has no attribute 'wrap_socket'