mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
test/ca.py: fix handling of RFC4716 public key files.
I must have dashed off that branch of the key reading function without ever testing it, or I'd have noticed by now that it was looking for the wrong string to terminate the file. Ahem.
This commit is contained in:
parent
68985ecb1e
commit
71f43af547
@ -114,7 +114,7 @@ def read_pubkey_file(fh):
|
|||||||
comment = val.strip("\r\n")
|
comment = val.strip("\r\n")
|
||||||
line = next(lines)
|
line = next(lines)
|
||||||
# Now expect lines of base64 data.
|
# Now expect lines of base64 data.
|
||||||
while line != "---- BEGIN SSH2 PUBLIC KEY ----":
|
while line != "---- END SSH2 PUBLIC KEY ----":
|
||||||
b64buf.write(line)
|
b64buf.write(line)
|
||||||
line = next(lines)
|
line = next(lines)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user