1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 20:12:48 -05:00

Peter Schellenbach's patch: re-implement the PuTTY cryptographic

functions as calls to the MS Crypto API. Not integrated into the
Makefile yet, but should eventually allow building of an SSH-enabled
PuTTY which contains no native crypto code, so it can be used
everywhere (and anyone who can get the MS encryption pack can still
use the SSH parts).

[originally from svn r425]
This commit is contained in:
Simon Tatham
2000-03-24 09:45:49 +00:00
parent e32eae7db1
commit 9922072a8d
8 changed files with 502 additions and 6 deletions

View File

@ -474,8 +474,12 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
DeleteObject(pal);
WSACleanup();
if (cfg.protocol == PROT_SSH)
if (cfg.protocol == PROT_SSH) {
random_save_seed();
#ifdef MSCRYPTOAPI
crypto_wrapup();
#endif
}
return msg.wParam;
}