Skip to content

Commit 9d63fb7

Browse files
committed
Disable PKCS11 unit tests which use SHA-1 signatures
1 parent 1f9c8ab commit 9d63fb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_pkcs11.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ async def test_pkcs11_load_keys(self):
165165
for sig_alg in key.sig_algorithms:
166166
sig_alg = sig_alg.decode('ascii')
167167

168+
# Disable unit tests that involve SHA-1 hashes
169+
if sig_alg in ('ssh-rsa', 'x509v3-ssh-rsa'):
170+
continue
171+
168172
with self.subTest(key=key.get_comment(), sig_alg=sig_alg):
169173
async with self.connect(
170174
username='ckey', pkcs11_provider='xxx',

0 commit comments

Comments
 (0)