simon-git: putty (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Apr 21 14:47:03 BST 2019
TL;DR:
5a508a84 kh2reg.py: support ECDSA point compression.
33d4d223 kh2reg.py: work with Python 3.
91333f7c kh2reg.py: refactor main program to bottom of file.
ac1dd1bd kh2reg.py: switch from getopt to argparse.
0842d462 kh2reg.py: add -o option to write output to a file.
5f204d1e kh2reg.py: handle OpenSSH hashed hostnames.
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2019-04-21 14:47:03
commit 5a508a84a27787f73a6f24705d9b337ec3306edc
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=5a508a84a27787f73a6f24705d9b337ec3306edc;hp=81be535f6749d7f1f67ac29b97c1d8e5ee20021e
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Apr 20 17:20:28 2019 +0100
kh2reg.py: support ECDSA point compression.
We support it in the ECC code proper these days, as of the bignum
rewrite in commit 25b034ee3. So we should support it in this auxiliary
script too, and fortunately, there's no real difficulty in doing so
because I already had some Python code kicking around in
test/eccref.py for taking modular square roots.
contrib/kh2reg.py | 164 +++++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 138 insertions(+), 26 deletions(-)
commit 33d4d223a507e3b0e26243d1dae9d8ade0b2bef2
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=33d4d223a507e3b0e26243d1dae9d8ade0b2bef2;hp=5a508a84a27787f73a6f24705d9b337ec3306edc
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Apr 21 13:55:22 2019 +0100
kh2reg.py: work with Python 3.
contrib/kh2reg.py | 82 +++++++++++++++++++++++++------------------------------
1 file changed, 37 insertions(+), 45 deletions(-)
commit 91333f7c740ce9d38c9e559c159d03b1f313915c
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=91333f7c740ce9d38c9e559c159d03b1f313915c;hp=33d4d223a507e3b0e26243d1dae9d8ade0b2bef2
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Apr 21 14:02:35 2019 +0100
kh2reg.py: refactor main program to bottom of file.
Now most of the program consists of function and class definitions,
and the code that activates it all is localised in one place at the
bottom instead of interleaved between the definitions.
contrib/kh2reg.py | 91 ++++++++++++++++++++++++++++++++-----------------------
1 file changed, 53 insertions(+), 38 deletions(-)
commit ac1dd1bd2e92ac2e5f76ad976a39e6ae831b2493
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=ac1dd1bd2e92ac2e5f76ad976a39e6ae831b2493;hp=91333f7c740ce9d38c9e559c159d03b1f313915c
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Apr 21 14:07:25 2019 +0100
kh2reg.py: switch from getopt to argparse.
This change gives us an automatic --help option, which is always
useful for a script used very rarely. It also makes it that much
easier to add extra options.
contrib/kh2reg.py | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)
commit 0842d4627e9b8d534d1d57218be9f86fca7402d8
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=0842d4627e9b8d534d1d57218be9f86fca7402d8;hp=ac1dd1bd2e92ac2e5f76ad976a39e6ae831b2493
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Apr 21 14:09:45 2019 +0100
kh2reg.py: add -o option to write output to a file.
Generally useful, I always think.
contrib/kh2reg.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
commit 5f204d1ef1a229f1d962eaeb2bfe0c5e2614acd4
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=5f204d1ef1a229f1d962eaeb2bfe0c5e2614acd4;hp=0842d4627e9b8d534d1d57218be9f86fca7402d8
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Apr 21 14:42:17 2019 +0100
kh2reg.py: handle OpenSSH hashed hostnames.
Obviously we can't do that by inverting the hash function itself, but
if the user provides one or more host names on the command line that
they're expecting to appear in the file, we can at least compare the
stored hashes against those.
contrib/kh2reg.py | 84 ++++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 62 insertions(+), 22 deletions(-)
More information about the tartarus-commits
mailing list