client: not visual challength for SSH

This commit is contained in:
Roman Zeyde
2016-05-21 07:43:10 +03:00
parent 0cb7cf0746
commit 51f7d6120b
3 changed files with 6 additions and 16 deletions

View File

@@ -90,7 +90,7 @@ def test_ssh_agent():
assert (client.identity_to_string(identity) ==
client.identity_to_string(ident))
assert challenge_hidden == BLOB
assert challenge_visual == 'VISUAL'
assert challenge_visual == ''
assert ecdsa_curve_name == 'nist256p1'
result = mock.Mock(spec=[])
@@ -99,8 +99,7 @@ def test_ssh_agent():
return result
c.client.sign_identity = ssh_sign_identity
signature = c.sign_ssh_challenge(label=label, blob=BLOB,
visual='VISUAL')
signature = c.sign_ssh_challenge(label=label, blob=BLOB)
key = formats.import_public_key(PUBKEY_TEXT)
serialized_sig = key['verifier'](sig=signature, msg=BLOB)
@@ -122,7 +121,7 @@ def test_ssh_agent():
c.client.sign_identity = cancel_sign_identity
with pytest.raises(IOError):
c.sign_ssh_challenge(label=label, blob=BLOB, visual='VISUAL')
c.sign_ssh_challenge(label=label, blob=BLOB)
def test_utils():