92 |
SetDlgItemText (dlg, IDC_DECRYPT_SIGN_HIDE, _("&Hide Typing")); |
SetDlgItemText (dlg, IDC_DECRYPT_SIGN_HIDE, _("&Hide Typing")); |
93 |
CheckDlgButton (dlg, IDC_DECRYPT_SIGN_HIDE, BST_CHECKED); |
CheckDlgButton (dlg, IDC_DECRYPT_SIGN_HIDE, BST_CHECKED); |
94 |
} |
} |
95 |
|
/* Because it depends on the order the keys are stored in the |
96 |
|
keyring whether res->recipients is complete or not, we also |
97 |
|
support that the recipients were externally extracted and then |
98 |
|
we use this list. */ |
99 |
if (c->recipients) |
if (c->recipients) |
100 |
recip = c->recipients; /* recipients were already extracted. */ |
recip = c->recipients; /* recipients were already extracted. */ |
101 |
else { |
else { |
|
/* XXX: not all ENCRYPT_TO entries are listed here. */ |
|
102 |
res = gpgme_op_decrypt_result (c->gpg); |
res = gpgme_op_decrypt_result (c->gpg); |
103 |
if (res && res->recipients) |
if (res && res->recipients) |
104 |
recip = res->recipients; |
recip = res->recipients; |
105 |
} |
} |
106 |
if (recip != NULL && c->gpg_cmd == GPG_CMD_DECRYPT) { |
if (recip != NULL && c->gpg_cmd == GPG_CMD_DECRYPT) { |
107 |
for (r = res->recipients; r; r = r->next) { |
for (r = recip; r; r = r->next) { |
108 |
get_pubkey (r->keyid, &key); |
get_pubkey (r->keyid, &key); |
109 |
if (key) { |
if (key) { |
110 |
gpgme_user_id_t u = key->uids; |
gpgme_user_id_t u = key->uids; |