38 |
#include "wptDlgs.h" |
#include "wptDlgs.h" |
39 |
#include "wptKeylist.h" |
#include "wptKeylist.h" |
40 |
#include "wptFileManager.h" |
#include "wptFileManager.h" |
41 |
#include "../resource.h" |
#include "wptCrypto.h" |
42 |
|
#include "resource.h" |
43 |
|
|
44 |
bool secret_key_available (gpgme_recipient_t rset); |
bool secret_key_available (gpgme_recipient_t rset); |
45 |
|
|
142 |
else if (err) { |
else if (err) { |
143 |
int pgp_type; |
int pgp_type; |
144 |
gpg_clip_get_pgptype (&pgp_type); |
gpg_clip_get_pgptype (&pgp_type); |
145 |
if (gpgme_err_code (err) == GPG_ERR_NO_DATA && (pgp_type & PGP_MESSAGE)) |
if (gpgme_err_code (err) == GPG_ERR_NO_DATA |
146 |
|
&& (pgp_type & PGP_MESSAGE)) |
147 |
msg_box (hwnd, _("Broken OpenPGP message (maybe: quoted printable " |
msg_box (hwnd, _("Broken OpenPGP message (maybe: quoted printable " |
148 |
"character in armor)."), _("Decryption"), MB_INFO); |
"character in armor)."), |
149 |
|
_("Decryption"), MB_INFO); |
150 |
else |
else |
151 |
msg_box (hwnd, gpgme_strerror (err), _("Decryption"), MB_ERR); |
msg_box (hwnd, gpgme_strerror (err), _("Decryption"), MB_ERR); |
152 |
goto leave; |
goto leave; |