Get rid of the variable 'advapi' in Pageant's WinMain, which was never
actually used for anything sensible and could have been freed while
containing nonsense at program end.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9971 cda61777-01e9-0310-a592-d414129be87e
Add an assortment of missing consts I've just noticed.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9972 cda61777-01e9-0310-a592-d414129be87e
Remove one of the frees added in r9916. stat_name points to somewhere
within the same string that destfname points to the start of, so
freeing it causes at best a double-free of destfname and more likely a
free of something that isn't even the start of an allocated block.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9974 cda61777-01e9-0310-a592-d414129be87e
Fix an array-size bug in modmul, and add some tests for it.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9977 cda61777-01e9-0310-a592-d414129be87e
Add some missing bounds checks in signature verification routines.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9978 cda61777-01e9-0310-a592-d414129be87e
Replace some 'sfree' calls of bignums with the proper 'freebn'.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9979 cda61777-01e9-0310-a592-d414129be87e
Verify RSA keys created by rsa2_openssh_createkey.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9980 cda61777-01e9-0310-a592-d414129be87e
Found a lot of places in sshbn.c where for-loops zeroing out memory
just before freeing it really ought to be smemclrs.


git-svn-id: svn://svn.tartarus.org/sgt/putty@9981 cda61777-01e9-0310-a592-d414129be87e
Raise the default scrollback from 200 to 2000 lines. The former was
not so silly in the 1990s and before I implemented scrollback
compression, but it's been a ridiculously low default for a while now.


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