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

@@ -26,6 +26,7 @@ def parse_pubkey(blob):
curve_name = util.read_frame(s)
log.debug('curve name: %s', curve_name)
point = util.read_frame(s)
assert s.read() == b''
_type, point = point[:1], point[1:]
assert _type == DER_OCTET_STRING
size = len(point) // 2