1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-12 16:47:42 -05:00

Create settings.c and move the load/save session code out of

windlg.c into it. Allows plink and pscp to no longer link with
windlg.c, meaning they lose some of the sillier stub functions and
also can provide a console-based form of verify_ssh_host_key().

[originally from svn r683]
This commit is contained in:
Simon Tatham
2000-10-06 13:21:36 +00:00
parent 43abfd1783
commit b584238186
7 changed files with 498 additions and 353 deletions

View File

@ -132,7 +132,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
default_protocol = DEFAULT_PROTOCOL;
default_port = DEFAULT_PORT;
do_defaults(NULL);
do_defaults(NULL, &cfg);
p = cmdline;
while (*p && isspace(*p)) p++;
@ -190,7 +190,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
* An initial @ means to activate a saved session.
*/
if (*p == '@') {
do_defaults (p+1);
do_defaults (p+1, &cfg);
if (!*cfg.host && !do_config()) {
WSACleanup();
return 0;