1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python:tests: SHA1 is no longer supported by cryptography module

See https://github.com/pyca/cryptography/issues/8213#issuecomment-1419060001

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15513

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-11-09 22:27:03 +01:00 committed by Andreas Schneider
parent 362b0d69b1
commit 938afb8b28

View File

@ -79,28 +79,6 @@ class PkInitTests(KDCBaseTest):
account_type=account_type,
opts={'upn': f'{{account}}.{realm}@{realm}'})
def test_pkinit(self):
"""Test public-key PK-INIT."""
client_creds = self._get_creds()
target_creds = self.get_service_creds()
self._pkinit_req(client_creds, target_creds)
def test_pkinit_dh(self):
"""Test Diffie-Hellman PK-INIT."""
client_creds = self._get_creds()
target_creds = self.get_service_creds()
self._pkinit_req(client_creds, target_creds,
using_pkinit=PkInit.DIFFIE_HELLMAN)
def test_pkinit_win2k(self):
"""Test public-key Windows 2000 PK-INIT."""
client_creds = self._get_creds()
target_creds = self.get_service_creds()
self._pkinit_req(client_creds, target_creds, win2k_variant=True)
def test_pkinit_no_des3(self):
"""Test public-key PK-INIT without specifying the DES3 encryption
type. It should fail."""
@ -740,7 +718,7 @@ class PkInitTests(KDCBaseTest):
ca_private_key,
certificate_signature=None):
if certificate_signature is None:
certificate_signature = hashes.SHA1
certificate_signature = hashes.SHA256
user_name = creds.get_username()