1
0
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:
Simon Tatham 2022-07-30 14:49:11 +01:00
parent 68985ecb1e
commit 71f43af547

View File

@ -114,7 +114,7 @@ def read_pubkey_file(fh):
comment = val.strip("\r\n")
line = next(lines)
# Now expect lines of base64 data.
while line != "---- BEGIN SSH2 PUBLIC KEY ----":
while line != "---- END SSH2 PUBLIC KEY ----":
b64buf.write(line)
line = next(lines)