/[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 159 by twoaday, Fri Dec 30 13:56:10 2005 UTC revision 160 by twoaday, Thu Jan 19 09:22:09 2006 UTC
# Line 104  passphrase_callback_proc (HWND dlg, UINT Line 104  passphrase_callback_proc (HWND dlg, UINT
104              for (r = res->recipients; r; r = r->next) {              for (r = res->recipients; r; r = r->next) {
105                  get_pubkey (r->keyid, &key);                  get_pubkey (r->keyid, &key);
106                  if (key) {                  if (key) {
107                        gpgme_user_id_t u = key->uids;
108                      char *uid;                      char *uid;
109                      id = key->uids->name;  
110                        id = u->name;
111                      if (!id)                      if (!id)
112                          id = _("Invalid User ID");                          id = _("Invalid User ID");
113                      uid = utf8_to_wincp (id, strlen (id));                      uid = utf8_to_wincp (id, strlen (id));
114                      info = new char [32+strlen (uid)+1 + 4 + strlen (r->keyid)+1                      n = 32+strlen (uid)+1+4+strlen (r->keyid)+1;
115                                       + strlen (key->uids->email)+1];                      if (u->email)
116                            n += strlen (u->email)+1;
117                        info = new char [n+1];
118                      if (!info)                      if (!info)
119                          BUG (NULL);                          BUG (NULL);
120                      sprintf (info, "%s <%s> (%s, 0x%s)", uid, key->uids->email,                      if (!u->email || strlen (u->email) < 1)
121                               get_key_pubalgo (r->pubkey_algo), r->keyid+8);                          sprintf (info, "%s (%s, 0x%s)", uid,
122                                     get_key_pubalgo (r->pubkey_algo), r->keyid+8);
123                        else
124                            sprintf (info, "%s <%s> (%s, 0x%s)", uid, u->email,
125                                     get_key_pubalgo (r->pubkey_algo), r->keyid+8);
126                      free (uid);                      free (uid);
                       
127                  }                  }
128                  else {                  else {
129                      info = new char [32 + strlen (r->keyid)+1 + 4];                      info = new char [32 + strlen (r->keyid)+1 + 4];

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26