simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Wed Apr 27 16:40:00 BST 2022


TL;DR:
  93fb65af Fix translation of legacy registry RSA key format.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2022-04-27 16:40:00

commit 93fb65af6139db3dad4d34d6d8bab002a8ea0136
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=93fb65af6139db3dad4d34d6d8bab002a8ea0136;hp=de5f295b99cb727a663558563d37e819366ed780
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed Apr 27 16:33:23 2022 +0100

    Fix translation of legacy registry RSA key format.
    
    A user points out that in commit 6143a50ed228fdf, when I converted all
    use of the registry to functions that return a newly allocated buffer
    instead of allocating a buffer themselves beforehand, I overlooked
    that one use of the old idiom was reusing the preallocated buffer as
    work space.
    
    I _hope_ nobody still needs this code - the 'old-style' host key cache
    format it handles was replaced in 2000. If anyone has a PuTTY host key
    cache entry that's survived 22 years without either having to be
    reinitialised on a new system or changed when the machine's host key
    was upgraded, they're doing better than I am!
    
    But if it's still here, it should still work, obviously. Replaced the
    reused buffer with a strbuf, which is more robust anyway.

 windows/storage.c | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)



More information about the tartarus-commits mailing list