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

Diff of /trunk/Src/wptVerifyList.cpp

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

revision 193 by twoaday, Sat Apr 1 12:36:35 2006 UTC revision 204 by twoaday, Wed Apr 26 06:37:23 2006 UTC
# Line 32  Line 32 
32  #include "wptKeylist.h"  #include "wptKeylist.h"
33  #include "wptNLS.h"  #include "wptNLS.h"
34  #include "wptErrors.h"  #include "wptErrors.h"
 #include "wptUTF8.h"  
35  #include "wptW32API.h"  #include "wptW32API.h"
36    
37    
# Line 193  verlist_add_sig (listview_ctrl_t lv, gpg Line 192  verlist_add_sig (listview_ctrl_t lv, gpg
192      else      else
193          attr = key->uids->name;          attr = key->uids->name;
194    
195      uid = utf8_to_native (attr);      listview_add_sub_item (lv, 0, VER_COL_UID, attr);
     listview_add_sub_item (lv, 0, VER_COL_UID, (char *)uid);  
     free (uid);  
   
196      return 0;      return 0;
197  }  }
198    
# Line 208  verlist_add_sig_log (listview_ctrl_t lv, Line 204  verlist_add_sig_log (listview_ctrl_t lv,
204  {  {
205      gpgme_signature_t sig = log->sig;      gpgme_signature_t sig = log->sig;
206      gpgme_key_t key = NULL;      gpgme_key_t key = NULL;
207      const char *attr;          const char *attr;
208      char t[64], *name;      char t[64], *name;
209      int off = 0;      int off = 0;
210    
# Line 251  verlist_add_sig_log (listview_ctrl_t lv, Line 247  verlist_add_sig_log (listview_ctrl_t lv,
247          off = strlen (sig->fpr) == 40? 32 : 24;          off = strlen (sig->fpr) == 40? 32 : 24;
248      _snprintf (t, sizeof (t)-1, "0x%s", sig->fpr + off);      _snprintf (t, sizeof (t)-1, "0x%s", sig->fpr + off);
249      listview_add_sub_item (lv, 0, VER_COL_KEYID, t);      listview_add_sub_item (lv, 0, VER_COL_KEYID, t);
250        listview_add_sub_item (lv, 0, VER_COL_UID,
251      if (log->user_id)                             log->user_id?
252          name = utf8_to_native (log->user_id);                             log->user_id : _("user ID not found"));
     else  
         name = strdup (_("user ID not found"));  
   
     listview_add_sub_item (lv, 0, VER_COL_UID, name);  
     free (name);  
253      return 0;      return 0;
254  }  }

Legend:
Removed from v.193  
changed lines
  Added in v.204

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26