(do_ssh2_authconn_state).method is redundant since r6437; remove.
Remove FIXMEs from .type assignments, as they look fine.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6442 cda61777-01e9-0310-a592-d414129be87e
When a userpass interaction has finished, make sure the 'prompts' structure
is safe for re-use.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6444 cda61777-01e9-0310-a592-d414129be87e
Fix for `ssh2-password-expiry'. Success case tested.
(Much easier since r6437, and actually works to boot.)


git-svn-id: svn://svn.tartarus.org/sgt/putty@6445 cda61777-01e9-0310-a592-d414129be87e
Placate a compiler warning introduced in r6437.
(I forgot we usually compile with -Werror on Unix, oops.)


git-svn-id: svn://svn.tartarus.org/sgt/putty@6446 cda61777-01e9-0310-a592-d414129be87e
Fix minor hiccup in SSH-1 p-k auth.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6447 cda61777-01e9-0310-a592-d414129be87e
I broke the ability to cope with multiple consecutive k-i INFO_REQUESTS
in r6437. This ought to be better (but I can't test that case).


git-svn-id: svn://svn.tartarus.org/sgt/putty@6451 cda61777-01e9-0310-a592-d414129be87e
Oops, used \I where I meant \i. I think this is the only instance.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6454 cda61777-01e9-0310-a592-d414129be87e
r6437 broke the case where Pageant is running but contains no SSH-2 keys
that the SSH-2 server is happy with. Fixed, and since I'm here, fix
`pubkeyfile-and-pageant' as well (for SSH-1 and SSH-2).
Also, in SSH-2, we now reexamine "methods that can continue" for every
Pageant key offer, which is technically more correct although it seems
unlikely that it was causing any real problems.
(It's not entirely pretty, but neither was the old code. We could probably
do with some sort of abstraction for public/private keys to avoid carting
lots of fiddly bits of data around.)


git-svn-id: svn://svn.tartarus.org/sgt/putty@6459 cda61777-01e9-0310-a592-d414129be87e
Missing close parenthesis.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6461 cda61777-01e9-0310-a592-d414129be87e
An MSVC version of the 16->32-bit bignum optimisation, derived from part of
a patch by Lionel Fourquaux. Seems to be about a factor of four improvement
(see wishlist item for details).
I don't claim to understand this in detail, so I can't vouch for its
correctness, but it didn't fall over immediately. It also produces some
compiler warnings, unfortunately.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6469 cda61777-01e9-0310-a592-d414129be87e
SSH-2 rekey bug compatibility setting wasn't being saved
(but _was_ being loaded).


git-svn-id: svn://svn.tartarus.org/sgt/putty@6473 cda61777-01e9-0310-a592-d414129be87e
Improvements from Spyros Blanas to the MSVC optimisations of r6469:
don't do a function call for each divmod, and don't rely on details of
the calling convention.
(This didn't actually make any measurable difference to runtime in any
of my tests, but we may as well keep it as it's neater.)
Also document some general caveats of the divmod macro.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6475 cda61777-01e9-0310-a592-d414129be87e
Institutional failure to memset() things pointed at rather than pointers.
Things should now be zeroed and memory not leaked. Spotted by Brant Thomsen.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6476 cda61777-01e9-0310-a592-d414129be87e
Apparently some SSH servers object to our claiming port-forwarded connections
to be from IP "client-side-connection". Claiming "0.0.0.0" instead seems to
work. Spotted by Brant Thomsen.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6477 cda61777-01e9-0310-a592-d414129be87e
A few small changes to make the PuTTY source base more usable as a
basis for other terminal-involving applications: a stub
implementation of the printing interface, an additional function in
notiming.c, and also I've renamed the front-end function beep() to
do_beep() so as not to clash with beep() in lib[n]curses.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6479 cda61777-01e9-0310-a592-d414129be87e
Mention compile-time directives and where they're documented.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6497 cda61777-01e9-0310-a592-d414129be87e
CP866 is popular and small. Add it to both the general and PuTTY
implementations of libcharset, since we've had at least one request for
it in PuTTY.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6499 cda61777-01e9-0310-a592-d414129be87e
Update status of this library wrt other variants.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6500 cda61777-01e9-0310-a592-d414129be87e
It's a new year.


git-svn-id: svn://svn.tartarus.org/sgt/putty@6513 cda61777-01e9-0310-a592-d414129be87e
Fix zero-rows-cols-crash


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