1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/contrib
Simon Tatham ee26ab8617 kh2reg: fix Python 3 iterator bug with multiple hostnames.
A known_hosts line can have multiple comma-separated hostnames on it,
or more usually a hostname and an IP address.

In the RSA and DSA key handlers, I was making a list of the integer
parameters of the public key by using the 'map' function, and then
iterating over it once per hostname on the line. But in Python 3, the
'map' function returns an iterator, not a list, so after you've
iterated to its end once, it's empty, and iterating over it a second
time stops immediately. As a result, the registry line for the second
hostname was coming out empty.

(cherry picked from commit 143f8a2d10)
2020-06-14 15:49:36 +01:00
..
cygtermd Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
encodelib.py Rework samplekex.py to use the new -proxycmd. 2016-05-03 16:51:42 +01:00
gdb.py Complete rewrite of PuTTY's bignum library. 2018-12-31 14:54:59 +00:00
kh2reg.py kh2reg: fix Python 3 iterator bug with multiple hostnames. 2020-06-14 15:49:36 +01:00
logparse.pl Whitespace rationalisation of entire code base. 2019-09-08 20:29:21 +01:00
logrewrap.pl Replace all uses of Perl <> with <<>>. 2019-01-25 20:20:37 +00:00
make1305.py Fix bug in Poly1305 bigval_final_reduce(). 2017-04-08 21:27:28 +01:00
nice-ibeam.cur Commit my replacement Windows I-beam mouse pointer. 2015-05-28 18:14:14 +01:00
samplekex.py Rework samplekex.py to use the new -proxycmd. 2016-05-03 16:51:42 +01:00