/[winpt]/trunk/Src/wptKeygenDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptKeygenDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 73 by twoaday, Tue Nov 8 07:15:13 2005 UTC revision 101 by twoaday, Fri Nov 25 10:56:05 2005 UTC
# Line 304  backup_keyrings (HWND dlg) Line 304  backup_keyrings (HWND dlg)
304                     "Backup your keyrings now?"),                     "Backup your keyrings now?"),
305                   _("WARNING - Important hint" ), MB_YESNO);                   _("WARNING - Important hint" ), MB_YESNO);
306      if (id == IDYES) {      if (id == IDYES) {
307          name = get_filename_dlg( dlg, 1, _("Destination for Public Keyring"), NULL, "pubring.gpg" );          name = get_filesave_dlg( dlg, _("Destination for Public Keyring"), NULL, "pubring.gpg" );
308          if( name ) {          if( name ) {
309              keyring = make_filename( path, "pubring", "gpg" );              keyring = make_filename( path, "pubring", "gpg" );
310              if( !CopyFile( keyring, name, FALSE ) )              if( !CopyFile( keyring, name, FALSE ) )
# Line 312  backup_keyrings (HWND dlg) Line 312  backup_keyrings (HWND dlg)
312                           _("Could not copy %s -> %s"), keyring, name );                               _("Could not copy %s -> %s"), keyring, name );    
313              free_if_alloc( keyring );              free_if_alloc( keyring );
314          }          }
315          name = get_filename_dlg( dlg, 1, _("Destination for Secret Keyring"), NULL, "secring.gpg" );          name = get_filesave_dlg( dlg, _("Destination for Secret Keyring"), NULL, "secring.gpg" );
316          if( name ) {          if( name ) {
317              keyring = make_filename( path, "secring", "gpg" );              keyring = make_filename( path, "secring", "gpg" );
318              if( !CopyFile( keyring, name, FALSE ) )              if( !CopyFile( keyring, name, FALSE ) )
# Line 391  keygen_dlg_proc (HWND dlg, UINT msg, WPA Line 391  keygen_dlg_proc (HWND dlg, UINT msg, WPA
391          SetDlgItemText( dlg, IDC_KEYGEN_KEYTYPEINF, _("Key &type") );          SetDlgItemText( dlg, IDC_KEYGEN_KEYTYPEINF, _("Key &type") );
392          SetDlgItemText (dlg, IDC_KEYGEN_EXPNEVER, _("&Never"));          SetDlgItemText (dlg, IDC_KEYGEN_EXPNEVER, _("&Never"));
393          SetDlgItemText (dlg, IDC_KEYGEN_HIDEPWD, _("&Hide Typing"));          SetDlgItemText (dlg, IDC_KEYGEN_HIDEPWD, _("&Hide Typing"));
394            SetDlgItemText (dlg, IDCANCEL, _("&Cancel"));
395    
396          SetDlgItemInt (dlg, IDC_KEYGEN_SUBKEYBITS, 2048, FALSE);          SetDlgItemInt (dlg, IDC_KEYGEN_SUBKEYBITS, 2048, FALSE);
397          CheckDlgButton (dlg, IDC_KEYGEN_HIDEPWD, BST_CHECKED);          CheckDlgButton (dlg, IDC_KEYGEN_HIDEPWD, BST_CHECKED);
# Line 547  keygen_dlg_proc (HWND dlg, UINT msg, WPA Line 548  keygen_dlg_proc (HWND dlg, UINT msg, WPA
548                            
549              keycache_update (0, fpr);              keycache_update (0, fpr);
550              keycache_update (1, fpr);              keycache_update (1, fpr);
551              if (ctx->first_start == 0 && ctx != NULL)              if (ctx != NULL && ctx->first_start == 0)
552                  get_pubkey (fpr, &ctx->newkey);                  get_pubkey (fpr, &ctx->newkey);
553              if (fpr)              if (fpr)
554                  free (fpr);                  free (fpr);

Legend:
Removed from v.73  
changed lines
  Added in v.101

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26