242 |
text_input_s input; |
text_input_s input; |
243 |
gpgme_data_t sig; |
gpgme_data_t sig; |
244 |
|
|
245 |
memset( &input, 0, sizeof (input) ); |
memset (&input, 0, sizeof (input)); |
246 |
err = gpg_data_new_from_clipboard (&sig, 0); |
err = gpg_data_new_from_clipboard (&sig, 0); |
247 |
if( err ) { |
if (err) { |
248 |
msg_box( hwnd, gpgme_strerror( err ),_("Verify"), MB_ERR ); |
msg_box (hwnd, gpgme_strerror( err ),_("Verify"), MB_ERR); |
249 |
return; |
return; |
250 |
} |
} |
251 |
input.type = 0; |
input.type = 0; |
252 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_TEXT, hwnd, |
dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_TEXT, hwnd, |
253 |
text_input_dlg_proc, (LPARAM)&input, |
text_input_dlg_proc, (LPARAM)&input, |
254 |
_("Text Input"), IDS_WINPT_TEXT ); |
_("Text Input"), IDS_WINPT_TEXT); |
255 |
|
|
256 |
gpg_data_release_and_set_clipboard( sig, 0 ); |
/* the dialog might have changed the clipboard, so we restore |
257 |
if( input.length ) { |
the original state (again). */ |
258 |
dialog_box_param( glob_hinst, (LPCSTR)IDD_WINPT_VERIFY, hwnd, |
gpg_data_release_and_set_clipboard (sig, 0); |
259 |
clip_verify_dlg_proc, (LPARAM)&input, |
if (input.length > 0) { |
260 |
_("Verify"), IDS_WINPT_VERIFY ); |
dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_VERIFY, hwnd, |
261 |
|
clip_verify_dlg_proc, (LPARAM)&input, |
262 |
|
_("Verify"), IDS_WINPT_VERIFY); |
263 |
input.length = 0; |
input.length = 0; |
264 |
free_if_alloc( input.data ); |
free_if_alloc (input.data); |
265 |
} |
} |
266 |
} |
} |
267 |
else if (type & PGP_CLEARSIG) { |
else if (type & PGP_CLEARSIG) { |