/[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 48 by werner, Mon Oct 31 21:14:11 2005 UTC revision 88 by twoaday, Mon Nov 21 12:06:59 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 375  keygen_dlg_proc (HWND dlg, UINT msg, WPA Line 375  keygen_dlg_proc (HWND dlg, UINT msg, WPA
375            
376      switch ( msg ) {      switch ( msg ) {
377      case WM_INITDIALOG:      case WM_INITDIALOG:
378          if (lparam != NULL)          if (lparam != 0)
379              ctx = (genkey_s *)lparam;              ctx = (genkey_s *)lparam;
380          SetWindowText( dlg, _("Key Generation") );          SetWindowText( dlg, _("Key Generation") );
381          SetDlgItemText( dlg, IDC_KEYGEN_INFO,          SetDlgItemText( dlg, IDC_KEYGEN_INFO,
# Line 547  keygen_dlg_proc (HWND dlg, UINT msg, WPA Line 547  keygen_dlg_proc (HWND dlg, UINT msg, WPA
547                            
548              keycache_update (0, fpr);              keycache_update (0, fpr);
549              keycache_update (1, fpr);              keycache_update (1, fpr);
550              if (ctx->first_start == 0 && ctx != NULL)              if (ctx != NULL && ctx->first_start == 0)
551                  get_pubkey (fpr, &ctx->newkey);                  get_pubkey (fpr, &ctx->newkey);
552              if (fpr)              if (fpr)
553                  free (fpr);                  free (fpr);
# Line 606  keygen_wizard_dlg_proc (HWND dlg, UINT m Line 606  keygen_wizard_dlg_proc (HWND dlg, UINT m
606          switch( LOWORD( wparam ) ) {          switch( LOWORD( wparam ) ) {
607          case IDC_KEYWIZARD_EXPERT:          case IDC_KEYWIZARD_EXPERT:
608              DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_KEYGEN, dlg,              DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_KEYGEN, dlg,
609                              keygen_dlg_proc, NULL);                              keygen_dlg_proc, 0);
610              EndDialog (dlg, TRUE);              EndDialog (dlg, TRUE);
611              break;              break;
612    

Legend:
Removed from v.48  
changed lines
  Added in v.88

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26