Now that we've decided on a file extension for private key files
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 6 Aug 2002 17:27:18 +0000 (17:27 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 6 Aug 2002 17:27:18 +0000 (17:27 +0000)
(.PPK), make it the default in all the private-key file dialogs.

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

pageant.c
puttygen.c
windlg.c

index df24a7d..0f423f2 100644 (file)
--- a/pageant.c
+++ b/pageant.c
@@ -1240,7 +1240,7 @@ static void prompt_add_keyfile(void)
     of.lStructSize = sizeof(of);
 #endif
     of.hwndOwner = main_hwnd;
-    of.lpstrFilter = "All Files\0*\0\0\0";
+    of.lpstrFilter = "PuTTY Private Key Files\0*.PPK\0AllFiles\0*\0\0\0";
     of.lpstrCustomFilter = NULL;
     of.nFilterIndex = 1;
     of.lpstrFile = filelist;
index 2d58975..44b5ec9 100644 (file)
@@ -182,7 +182,7 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
     of.lStructSize = sizeof(of);
 #endif
     of.hwndOwner = hwnd;
-    of.lpstrFilter = "All Files\0*\0\0\0";
+    of.lpstrFilter = "PuTTY Private Key Files\0*.PPK\0AllFiles\0*\0\0\0";
     of.lpstrCustomFilter = NULL;
     of.nFilterIndex = 1;
     of.lpstrFile = filename;
@@ -190,6 +190,7 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
     of.nMaxFile = FILENAME_MAX;
     of.lpstrFileTitle = NULL;
     of.lpstrInitialDir = NULL;
+    of.lpstrDefExt = ".ppk";
     of.lpstrTitle = dlgtitle;
     of.Flags = 0;
     if (save)
index bdc9852..2876d9d 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -3133,7 +3133,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
                of.lStructSize = sizeof(of);
 #endif
                of.hwndOwner = hwnd;
-               of.lpstrFilter = "All Files\0*\0\0\0";
+               of.lpstrFilter = "PuTTY Private Key Files\0*.PPK\0"
+                   "AllFiles\0*\0\0\0";
                of.lpstrCustomFilter = NULL;
                of.nFilterIndex = 1;
                of.lpstrFile = filename;