/[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 228 by twoaday, Thu Jun 15 11:37:53 2006 UTC revision 256 by twoaday, Sat Aug 5 10:31:06 2006 UTC
# Line 1  Line 1 
1  /* wptVerifyList.cpp - Listview for verifying signatures  /* wptVerifyList.cpp - Listview for verifying signatures
2   *      Copyright (C) 2001, 2002, 2003, 2005 Timo Schulz   *      Copyright (C) 2001, 2002, 2003, 2005, 2006 Timo Schulz
3   *      Copyright (C) 2005 g10 Code GmbH   *      Copyright (C) 2005 g10 Code GmbH
4   *   *
5   * This file is part of WinPT.   * This file is part of WinPT.
# Line 125  verlist_set_additional_info (verlist_ctr Line 125  verlist_set_additional_info (verlist_ctr
125      if (!vlv->infctl)      if (!vlv->infctl)
126          return;          return;
127    
128        /* if the signature is bad, we just hide the window and return. */
129        if (sig->summary & GPGME_SIGSUM_RED) {
130            ShowWindow (vlv->infctl, SW_HIDE);
131            return;
132        }
133    
134      if (sig->exp_timestamp > (DWORD)time (NULL))      if (sig->exp_timestamp > (DWORD)time (NULL))
135          SendMessage (vlv->infctl, WM_SETTEXT, 0, (LPARAM)(char*)          SendMessage (vlv->infctl, WM_SETTEXT, 0, (LPARAM)(char*)
136                       _("The signature is expired!"));                       _("The signature is expired!"));
137      else if (sig->validity != GPGME_VALIDITY_MARGINAL &&      else if (sig->validity != GPGME_VALIDITY_MARGINAL &&
138               sig->validity != GPGME_VALIDITY_FULL &&               sig->validity != GPGME_VALIDITY_FULL &&
139               sig->validity != GPGME_VALIDITY_ULTIMATE) {               sig->validity != GPGME_VALIDITY_ULTIMATE &&
140                 !(sig->summary & GPGME_SIGSUM_KEY_MISSING)) {
141          SendMessage (vlv->infctl, WM_SETTEXT, 0, (LPARAM)(char*)          SendMessage (vlv->infctl, WM_SETTEXT, 0, (LPARAM)(char*)
142                       _("WARNING: This key is not certified with a trusted signature!\r\n"                       _("WARNING: This key is not certified with a trusted signature!\r\n"
143                         "                   There is no indication that the signature belongs to the owner.\r\n"));                         "                   There is no indication that the signature belongs to the owner.\r\n"));
# Line 159  verlist_build (verlist_ctrl_t *vlv, HWND Line 166  verlist_build (verlist_ctrl_t *vlv, HWND
166  {  {
167      struct listview_column_s verlist[] = {      struct listview_column_s verlist[] = {
168          {0, 120, (char *)_("Name")},          {0, 120, (char *)_("Name")},
169          {1, 140, (char *)_("Status") },          {1, 140, (char *)_("Status")},
170          {2, 120, (char *)_("Signed") },          {2, 120, (char *)_("Signed")},
171          {3,  58, (char *)_("Trust") },          {3,  58, (char *)_("Trust") },
172          {4,  80, (char *)_("Key ID" )},          {4,  80, (char *)_("Key ID" )},
173          {5, 160, (char *)_("User ID") },          {5, 160, (char *)_("User ID")},
174          {6, 0, NULL}          {6, 0, NULL}
175      };      };
176      HICON ico[2];      HICON ico[2];
# Line 211  int Line 218  int
218  verlist_add_sig (verlist_ctrl_t vlv, gpgme_signature_t sig)  verlist_add_sig (verlist_ctrl_t vlv, gpgme_signature_t sig)
219  {  {
220      listview_ctrl_t lv;      listview_ctrl_t lv;
221      struct winpt_key_s key;      struct winpt_key_s key;    
     u32 key_attr;  
222      const char *attr;      const char *attr;
223      char keyid[32+1];      char keyid[32+1];
224        u32 key_attr;
225      int is_bad;      int is_bad;
226            
227      is_bad = sig->summary & GPGME_SIGSUM_RED? 1 : 0;      is_bad = sig->summary & GPGME_SIGSUM_RED? 1 : 0;

Legend:
Removed from v.228  
changed lines
  Added in v.256

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26