Skip to content

Commit

Permalink
Mark new tests that require SHA1
Browse files Browse the repository at this point in the history
Like #2011
  • Loading branch information
pghmcfc authored and bitprophet committed May 20, 2022
1 parent 2ea2ed5 commit dca52aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_client.py
Expand Up @@ -361,9 +361,11 @@ def _cert_algo_test(self, ver, alg):
== "{}-cert-v01@openssh.com".format(alg)
)

@requires_sha1_signing
def test_old_openssh_needs_ssh_rsa_for_certs_not_rsa_sha2(self):
self._cert_algo_test(ver="7.7", alg="ssh-rsa")

@requires_sha1_signing
def test_newer_openssh_uses_rsa_sha2_for_certs_not_ssh_rsa(self):
# NOTE: 512 happens to be first in our list and is thus chosen
self._cert_algo_test(ver="7.8", alg="rsa-sha2-512")
Expand Down

0 comments on commit dca52aa

Please sign in to comment.