/[winpt]/trunk/Src/wptPassphraseCB.cpp
ViewVC logotype

Diff of /trunk/Src/wptPassphraseCB.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 160 by twoaday, Thu Jan 19 09:22:09 2006 UTC revision 179 by twoaday, Fri Feb 24 13:12:26 2006 UTC
# Line 92  passphrase_callback_proc (HWND dlg, UINT Line 92  passphrase_callback_proc (HWND dlg, UINT
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;

Legend:
Removed from v.160  
changed lines
  Added in v.179

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26