sshagent: add a few fixes and assertions

This commit is contained in:
Roman Zeyde
2015-07-03 16:35:21 +03:00
parent 3057a3d7a9
commit a77f9edb4e
4 changed files with 7 additions and 2 deletions

View File

@@ -67,6 +67,7 @@ class Handler(object):
key = formats.parse_pubkey(util.read_frame(buf))
log.debug('looking for %s', key['fingerprint'])
blob = util.read_frame(buf)
assert util.read_frame(buf) == b''
for k in self.public_keys:
if (k['fingerprint']) == (key['fingerprint']):