Fix a bounds check that should have been >= not >.

Thanks to René König for pointing it out.


git-svn-id: svn://svn.tartarus.org/sgt/putty@10174 cda61777-01e9-0310-a592-d414129be87e
Fix an annoying warning from GTK on Ubuntu 14.04.

Timer objects evaporate when our timer_trigger callback is called, and
therefore we should not remember their ids beyond that time and
attempt to cancel them later. Previous versions of GTK silently
ignored us doing that, but upgrading to Ubuntu Trusty has given me a
version of GTK that complains about it, so let's stop doing it.


git-svn-id: svn://svn.tartarus.org/sgt/putty@10181 cda61777-01e9-0310-a592-d414129be87e
Fix the prototype of the stub function in noshare.c.

It's an old prototype from part way through the development of
connection sharing, which I must have forgotten to fix because by the
time I changed the prototype no platform was using noshare.c any more.


git-svn-id: svn://svn.tartarus.org/sgt/putty@10183 cda61777-01e9-0310-a592-d414129be87e
Prevent double-inclusion of ssh.h in case of -DNO_SECURITY.

winshare.c includes ssh.h, but if you defined NO_SECURITY it then
decides to fall back to including the stub noshare.c, which includes
ssh.h again. Fix by moving a block of includes inside the ifdef.


git-svn-id: svn://svn.tartarus.org/sgt/putty@10184 cda61777-01e9-0310-a592-d414129be87e
Explicitly set the owning SID in make_private_security_descriptor.

Philippe Maupertuis reports that on one particular machine, Windows
causes the named pipe created by upstream PuTTY to be owned by the
Administrators group SID rather than the user's SID, which defeats the
security check in the downstream PuTTY. No other machine has been
reported to do this, but nonetheless it's clearly a thing that can
sometimes happen, so we now work around it by specifying explicitly in
the security descriptor for the pipe that its owner should be the user
SID rather than any other SID we might have the right to use.


git-svn-id: svn://svn.tartarus.org/sgt/putty@10188 cda61777-01e9-0310-a592-d414129be87e