44 |
#include "wptCard.h" |
#include "wptCard.h" |
45 |
#include "wptCryptdisk.h" |
#include "wptCryptdisk.h" |
46 |
#include "wptCardEdit.h" |
#include "wptCardEdit.h" |
|
#include "wptCrypto.h" |
|
47 |
|
|
48 |
static int cmd = 0; |
static int cmd = 0; |
49 |
static int wipe_contents = 0; |
static int wipe_contents = 0; |
192 |
gpgme_error_t err; |
gpgme_error_t err; |
193 |
int type; |
int type; |
194 |
|
|
195 |
if( (id == ID_WINPT_SIGN || id == ID_WINPT_SIGNENCRYPT) |
if ((id == ID_WINPT_SIGN || id == ID_WINPT_SIGNENCRYPT) |
196 |
&& gnupg_access_keyring (0) ) { |
&& gnupg_access_keyring (0)) { |
197 |
msg_box( hwnd, _("Could not access secret keyring."), _("Sign"), MB_ERR ); |
msg_box (hwnd, _("Could not access secret keyring."), _("Sign"), MB_ERR); |
198 |
return; |
return; |
199 |
} |
} |
200 |
|
|
201 |
switch( id ) { |
switch( id ) { |
202 |
case ID_WINPT_SYMENC: |
case ID_WINPT_SYMENC: |
203 |
gpg_encrypt_symmetric(); |
gpg_encrypt_symmetric (); |
204 |
break; |
break; |
205 |
|
|
206 |
case ID_WINPT_ENCRYPT: |
case ID_WINPT_ENCRYPT: |
320 |
{ |
{ |
321 |
static NOTIFYICONDATA NID; |
static NOTIFYICONDATA NID; |
322 |
static int use_hotkey = 0; |
static int use_hotkey = 0; |
|
reminder_ctx_s ctx; |
|
323 |
LPARAM param; |
LPARAM param; |
324 |
curr_wnd_ctx currwnd = {0}; |
curr_wnd_ctx currwnd = {0}; |
325 |
int rc, set_wc = 0, has_data = 0; |
int rc, set_wc = 0, has_data = 0; |
513 |
msg_box( hwnd, winpt_strerror (WPTERR_CLIP_EMPTY),_("Clipboard"), MB_ERR ); |
msg_box( hwnd, winpt_strerror (WPTERR_CLIP_EMPTY),_("Clipboard"), MB_ERR ); |
514 |
break; |
break; |
515 |
} |
} |
516 |
ctx.msecs = 500; |
clip_gpg_dlg (hwnd, (int)wparam); |
|
window_reminder( &ctx ); |
|
|
clip_gpg_dlg( hwnd, (int)wparam ); |
|
517 |
break; |
break; |
518 |
|
|
519 |
/** Current window operations **/ |
/** Current window operations **/ |
530 |
winpt_strerror( WPTERR_CURR_WND ) ); |
winpt_strerror( WPTERR_CURR_WND ) ); |
531 |
break; |
break; |
532 |
} |
} |
533 |
ctx.msecs = 500; |
rc = currwnd_gpg_dlg (hwnd, (UINT)wparam, &set_wc); |
534 |
window_reminder( &ctx ); |
if (!rc && set_wc) |
535 |
rc = currwnd_gpg_dlg( hwnd, (UINT)wparam, &set_wc ); |
set_window_contents (hwnd, &currwnd); |
|
if( !rc && set_wc ) |
|
|
set_window_contents( hwnd, &currwnd ); |
|
536 |
break; |
break; |
537 |
|
|
538 |
/** File handling **/ |
/** File handling **/ |