Make Pageant use the same SID-selection logic as the Pageant client
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 8 Jun 2011 20:47:07 +0000 (20:47 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 8 Jun 2011 20:47:07 +0000 (20:47 +0000)
commitac3337f659b9648b4ffb88b3da3b68ad8fda3717
tree8a3ffbc6537c18353a3c644bafc1c86808da148f
parent5ff99b8e113a7a6b8388f8857c44decda0aaa0c8
Make Pageant use the same SID-selection logic as the Pageant client
code (as introduced in r9043), so that it uses the user SID rather
than the default SID.

This does change the access-control model, in that a Pageant running
with administrator privilege will now serve keys to an unprivileged
PuTTY running as the same user who started Pageant. Owen and I think
this isn't a problem (in particular, it will still not serve keys to a
_different_ user).

More importantly, making the Pageant client and server code work the
same way means that PuTTY and Pageant can still talk to each other
when UAC is turned off, which we've had several reports of r9043
having broken.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9178 cda61777-01e9-0310-a592-d414129be87e
windows/winpgnt.c
windows/winpgntc.c
windows/winstuff.h