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 ) ) |
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 ) ) |
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); |
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); |