581 |
case FM_ENCRYPT: |
case FM_ENCRYPT: |
582 |
case FM_ENCRYPT_DIR: |
case FM_ENCRYPT_DIR: |
583 |
case FM_SIGNENCRYPT: |
case FM_SIGNENCRYPT: |
584 |
if (strcmp (status, "ENCRYPTED")) |
if (strcmp (status, "ENCRYPTED") |
585 |
|
&& strcmp (status, "SYMKEYENC")) |
586 |
rc = 1; |
rc = 1; |
587 |
break; |
break; |
588 |
|
|
727 |
ctx->dlg = dlg; |
ctx->dlg = dlg; |
728 |
|
|
729 |
memset (&pfx, 0, sizeof (pfx)); |
memset (&pfx, 0, sizeof (pfx)); |
730 |
|
pfx.hwnd = dlg; |
731 |
gpgme_set_progress_cb (ctx->ctx, progress_callback, &pfx); |
gpgme_set_progress_cb (ctx->ctx, progress_callback, &pfx); |
732 |
|
|
733 |
/* Commands we need before we can perform the main command */ |
/* Commands we need before we can perform the main command */ |
763 |
if( !listview_get_item_state( lv, i ) ) |
if( !listview_get_item_state( lv, i ) ) |
764 |
continue; |
continue; |
765 |
listview_get_item_text( lv, i, 0, status, sizeof (status) -1 ); |
listview_get_item_text( lv, i, 0, status, sizeof (status) -1 ); |
766 |
if( !strcmp( status, "ENCRYPTED" ) && fm_cmd == FM_DECRYPT ) |
if (!strcmp( status, "ENCRYPTED" ) && fm_cmd == FM_DECRYPT) |
767 |
n++; |
n++; |
768 |
if( !strcmp( status, "UNKNOWN" ) && fm_cmd == FM_SIGN ) |
if (!strcmp( status, "UNKNOWN" ) && fm_cmd == FM_SIGN) |
769 |
n++; |
n++; |
770 |
if (fm_cmd == FM_WIPE) { |
if (fm_cmd == FM_WIPE) { |
771 |
if (!confirm.rset) |
if (!confirm.rset) |
776 |
} |
} |
777 |
} |
} |
778 |
|
|
779 |
if( n > 1 ) |
if (n > 1 && fm_cmd != FM_SYMENC) |
780 |
ctx->cache_cb = 1; |
ctx->cache_cb = 1; |
781 |
|
|
782 |
if( fm_cmd == FM_WIPE && ndel > 0 ) { |
if (fm_cmd == FM_WIPE && ndel > 0) { |
783 |
DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_FILES_SECDEL, ctx->dlg, |
DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_FILES_SECDEL, ctx->dlg, |
784 |
file_secdel_confirm_dlg_proc, (LPARAM)&confirm); |
file_secdel_confirm_dlg_proc, (LPARAM)&confirm); |
785 |
if (!confirm.yes) |
if (!confirm.yes) |