Skip to content

Commit

Permalink
Disable PKCS11 unit tests which use SHA-1 signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
ronf committed Oct 2, 2024
1 parent 1f9c8ab commit 9d63fb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_pkcs11.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ async def test_pkcs11_load_keys(self):
for sig_alg in key.sig_algorithms:
sig_alg = sig_alg.decode('ascii')

# Disable unit tests that involve SHA-1 hashes
if sig_alg in ('ssh-rsa', 'x509v3-ssh-rsa'):
continue

with self.subTest(key=key.get_comment(), sig_alg=sig_alg):
async with self.connect(
username='ckey', pkcs11_provider='xxx',
Expand Down

0 comments on commit 9d63fb7

Please sign in to comment.