client: show current time instead of identity.path

This commit is contained in:
Roman Zeyde
2016-02-17 15:04:10 +02:00
parent 40e2d9fb2c
commit d712509a4e
3 changed files with 9 additions and 5 deletions

View File

@@ -85,8 +85,10 @@ def test_ssh_agent():
def ssh_sign_identity(identity, challenge_hidden,
challenge_visual, ecdsa_curve_name):
assert (client.identity_to_string(identity) ==
client.identity_to_string(ident))
assert challenge_hidden == BLOB
assert challenge_visual == identity.path
assert challenge_visual == 'VISUAL'
assert ecdsa_curve_name == b'nist256p1'
result = mock.Mock(spec=[])
@@ -95,7 +97,8 @@ def test_ssh_agent():
return result
c.client.sign_identity = ssh_sign_identity
signature = c.sign_ssh_challenge(label=label, blob=BLOB)
signature = c.sign_ssh_challenge(label=label, blob=BLOB,
visual='VISUAL')
key = formats.import_public_key(PUBKEY_TEXT)
serialized_sig = key['verifier'](sig=signature, msg=BLOB)