simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon May 11 15:56:29 BST 2015


TL;DR:
  c59c6a8 Unix Pageant: -T option, tying lifetime to controlling tty.
  8c4ce6d Const-correctness in key-loading functions.
  2069de8 Pageant: factor out cross-platform parts of add_keyfile().
  8228085 Unix Pageant: move handling of --exec arguments.

Repository:     git://git.tartarus.org/simon/putty.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-05-11 15:56:29

commit c59c6a8db99857b8e3aee8d620b3b4bfbe3f8fcc
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=c59c6a8db99857b8e3aee8d620b3b4bfbe3f8fcc;hp=cc420507a98ed6aad8ef9260cfa70f32a45849b7
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri May 8 19:50:48 2015 +0100

    Unix Pageant: -T option, tying lifetime to controlling tty.
    
    This is intended to be a useful mode when you want to run an ssh agent
    in a terminal session with no X11 available. You just execute a
    command along the lines of eval $(pageant -T), and then Pageant will
    run in the background for the rest of that terminal session - and when
    the terminal session ends, so that Pageant loses its controlling tty,
    it will take that as the signal to shut down. So, no need to manually
    kill it, and unlike 'pageant --exec $SHELL', you can also do this half
    way through a session if you don't realise until later that you need
    an SSH agent, without losing any shell command history or other shell
    context that you've accumulated so far in the session.
    
    Unfortunately, I haven't been able to find any reliable way to
    actually implement this -T mode, short of having Pageant wake up at
    regular intervals and try to open /dev/tty to see if it's still there.
    I had hoped that I could arrange to reliably get SIGHUP, or select on
    /dev/tty for exceptional conditions, or some such, but nothing I've
    tried along those lines seems to work.

 unix/uxpgnt.c |   54 +++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 49 insertions(+), 5 deletions(-)

commit 8c4ce6d8c62a8301932d3eb0ae00f02280a68207
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=8c4ce6d8c62a8301932d3eb0ae00f02280a68207;hp=c59c6a8db99857b8e3aee8d620b3b4bfbe3f8fcc
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon May 11 15:23:48 2015 +0100

    Const-correctness in key-loading functions.
    
    The passphrase parameter should be a const char *.

 ssh.h     |    5 +++--
 sshpubk.c |    9 +++++----
 2 files changed, 8 insertions(+), 6 deletions(-)

commit 2069de8c8f9b54fcdc9af71fefc55ada725ebc49
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=2069de8c8f9b54fcdc9af71fefc55ada725ebc49;hp=8c4ce6d8c62a8301932d3eb0ae00f02280a68207
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon May 11 15:06:25 2015 +0100

    Pageant: factor out cross-platform parts of add_keyfile().
    
    I've now centralised into pageant.c all the logic about trying to load
    keys of any type, with no passphrase or with the passphrases used in
    previous key-loading actions or with a new user-supplied passphrase,
    whether we're the main Pageant process ourself or are talking to
    another one as a client. The only part of that code remaining in
    winpgnt.c is the user interaction via dialog boxes, which of course is
    the part that will need to be done differently on other platforms.

 pageant.c         |  409 ++++++++++++++++++++++++++++++++++++++++++++
 pageant.h         |   35 ++++
 windows/winpgnt.c |  491 ++++++++---------------------------------------------
 3 files changed, 512 insertions(+), 423 deletions(-)

commit 8228085c540edbe822529699025641a05fae383f
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=8228085c540edbe822529699025641a05fae383f;hp=2069de8c8f9b54fcdc9af71fefc55ada725ebc49
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon May 11 13:11:17 2015 +0100

    Unix Pageant: move handling of --exec arguments.
    
    Now --exec instantly terminates option processing, by treating
    everything after it as the command. This means it doesn't matter if
    the --exec command word looks like another option, and it also means
    we can simplify the handling of real non-option argument words, when I
    get round to adding some for loading keys.

 unix/uxpgnt.c |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)



More information about the tartarus-commits mailing list