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

Diff of /trunk/Src/wptKeyPropsDlg.cpp

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

revision 34 by twoaday, Wed Oct 26 11:20:09 2005 UTC revision 41 by twoaday, Fri Oct 28 07:15:26 2005 UTC
# Line 1  Line 1 
1  /* wptKeyPropsDlg.cpp - WinPT key properties dialog  /* wptKeyPropsDlg.cpp - WinPT key properties dialog
2   *      Copyright (C) 2000, 2001, 2002, 2003, 2005 Timo Schulz   *      Copyright (C) 2000, 2001, 2002, 2003, 2005 Timo Schulz
3   *   *
4   * This file is part of WinPT.   * This file is part of WinPT.
5   *   *
6   * WinPT is free software; you can redistribute it and/or modify   * WinPT is free software; you can redistribute it and/or modify
7   * it under the terms of the GNU General Public License as published by   * it under the terms of the GNU General Public License as published by
8   * the Free Software Foundation; either version 2 of the License, or   * the Free Software Foundation; either version 2 of the License, or
9   * (at your option) any later version.   * (at your option) any later version.
10   *   *
11   * WinPT is distributed in the hope that it will be useful,   * WinPT is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.   * GNU General Public License for more details.
15   *   *
16   * You should have received a copy of the GNU General Public License   * You should have received a copy of the GNU General Public License
17   * along with WinPT; if not, write to the Free Software Foundation,   * along with WinPT; if not, write to the Free Software Foundation,
18   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19   */   */
20    
21  #include <windows.h>  #include <windows.h>
22    
23  #include "../resource.h"  #include "../resource.h"
24  #include "wptErrors.h"  #include "wptErrors.h"
25  #include "wptGPG.h"  #include "wptGPG.h"
26  #include "wptCommonCtl.h"  #include "wptCommonCtl.h"
27  #include "wptContext.h" /* for passphrase_s */  #include "wptContext.h" /* for passphrase_s */
28  #include "wptNLS.h"  #include "wptNLS.h"
29  #include "wptDlgs.h"  #include "wptDlgs.h"
30  #include "wptTypes.h"  #include "wptTypes.h"
31  #include "wptKeylist.h"  #include "wptKeylist.h"
32  #include "wptW32API.h"  #include "wptW32API.h"
33  #include "wptVersion.h"  #include "wptVersion.h"
34  #include "wptKeyEdit.h"  #include "wptKeyEdit.h"
35    
36  static void  
37  do_change_ownertrust (winpt_key_t k, const char *s)  /* Check that the key is not expired or revoked. */
38  {  static int
39      char ot[64];  do_check_key (gpgme_key_t key)
40        {
41      if( strstr( s, "ultimate" ) ) {      int okay = 0;
42          listview_get_item_text (k->callback.ctl, k->callback.idx, 5, ot, DIM (ot)-1);      okay = key->expired;
43          strcpy (ot, "Ultimate");      if (!okay)
44          listview_add_sub_item (k->callback.ctl, k->callback.idx, 5, ot);          okay = key->revoked;
45          /* fixme: If we switch back from Ultimate to a lower level */      return okay;
46      }  }
47  }  
48    
49    /* Convert a trust integer into a string representation. */
50  /* Check that the key is not expired or revoked. */  static const char*
51  static int  ownertrust_to_string (int val)
52  do_check_key (gpgme_key_t key)  {
53  {      const char *inf;
54      int okay = 0;      int id = val;
55      okay = key->expired;  
56      if (!okay)      switch (id) {
57          okay = key->revoked;      case 1: inf = _("Don't know");         break;
58      return okay;      case 2: inf = _("I do NOT trust");     break;
59  }      case 3: inf = _("I trust marginally"); break;
60        case 4: inf = _("I trust fully");      break;
61        case 5:
62  /* Convert a trust integer into a string representation. */      case 6: inf = _("I trust ultimately"); break;
63  static const char*      default:inf = _("Unknown");            break;
64  ownertrust_to_string (int val)      }
65  {      
66      const char * inf;      return inf;
67      int id = val;  }
68      switch (id) {  
69      case 1: inf = _("Don't know");         break;  
70      case 2: inf = _("I do NOT trust");     break;  /* Generate a unique temp name for the photo which
71      case 3: inf = _("I trust marginally"); break;     depends on the dialog handle and return it. */
72      case 4: inf = _("I trust fully");      break;  static const char*
73      case 5:  get_photo_tmpname (HWND dlg)
74      case 6: inf = _("I trust ultimately"); break;  {
75      default:inf = _("Unknown");            break;      static char buf[64];
76      }  
77            _snprintf (buf, sizeof (buf)-1, "winpt_photo_%08lX.tmp", (DWORD)dlg);
78      return inf;      return buf;
79  }  }
80    
81    
82  /* Generate a unique temp name for the photo which  /* Load the photo from the key @key */
83     depends on the dialog handle and return it. */  static int
84  static const char*  keyprops_load_photo (HWND dlg, gpgme_key_t key, gpgme_validity_t *r_valid)
85  get_photo_tmpname (HWND dlg)  {
86  {      winpt_key_s k;
87      static char buf[64];      FILE *f;
88        const BYTE *img;
89      _snprintf (buf, sizeof (buf)-1, "winpt_photo_%08lX.tmp", (DWORD)dlg);      DWORD imglen = 0;
90      return buf;      int pos=0;
91  }  
92        winpt_get_pubkey (key->subkeys->keyid, &k);
93        img = k.ext->attrib.d;
94  /* Load the photo from the key @key */      imglen = k.ext->attrib.len;
95  static int      if (!k.ext->attrib.validity)
96  keyprops_load_photo (HWND dlg, gpgme_key_t key, gpgme_validity_t *r_valid)          get_uat_validity (key->subkeys->keyid, &k.ext->attrib.validity);
97  {      *r_valid = k.ext->attrib.validity;
98      winpt_key_s k;  
99      FILE *f;      if (!img || !imglen)
100      const BYTE *img;          return -1;
101      DWORD imglen = 0;      f = fopen (get_photo_tmpname (dlg), "wb");
102      int pos=0;      if (f) {
103            for (pos = 0; img[pos] != 0x10; pos++)
104      winpt_get_pubkey (key->subkeys->keyid, &k);                  ;
105      img = k.ext->attrib.d;          pos += 16;
106      imglen = k.ext->attrib.len;          fwrite (img + pos, 1, imglen - pos, f);
107      if (!k.ext->attrib.validity)          fwrite (img, 1, imglen, f);
108          get_uat_validity (key->subkeys->keyid, &k.ext->attrib.validity);          fclose (f);
109      *r_valid = k.ext->attrib.validity;      }
110        return 0;
111      if (!img || !imglen)  }
112          return -1;  
113      f = fopen (get_photo_tmpname (dlg), "wb");  
114      if (f) {  /* Display the photo in the image control in the dialog @dlg. */
115          for (pos = 0; img[pos] != 0x10; pos++)  static int
116                  ;  keyprops_show_photo (HWND dlg)
117          pos += 16;  {
118          fwrite (img + pos, 1, imglen - pos, f);      RECT r;    
119          fwrite (img, 1, imglen, f);      POINT p;
120          fclose (f);      HWND h;
121      }  
122      return 0;      h = GetDlgItem (dlg, IDC_KEYPROPS_IMG);
123  }      GetWindowRect (h, &r);
124        p.x = r.left + 5;
125        p.y = r.top - 2;
126  /* Display the photo in the image control in the dialog @dlg. */      memset (&p, 0, sizeof (p));
127  static int      PTD_jpg_show (h, &p, get_photo_tmpname (dlg));
128  keyprops_show_photo (HWND dlg)      
129  {      return 0;
130      RECT r;      }
131      POINT p;  
132      HWND h;  
133    /* Return string representation of the key validity. @key. */
134      h = GetDlgItem (dlg, IDC_KEYPROPS_IMG);  static const char*
135      GetWindowRect (h, &r);  get_validity (gpgme_key_t key)
136      p.x = r.left + 5;  {
137      p.y = r.top - 2;      int val;
138      memset (&p, 0, sizeof (p));      val = key->expired;
139      PTD_jpg_show (h, &p, get_photo_tmpname (dlg));      if (val)
140                return _("Expired");    
141      return 0;      val = key->revoked;
142  }      if (val)
143            return _("Revoked");
144        val = key->disabled;
145  /* Return string representation of the key validity. @key. */      if (val)
146  static const char*          return _("Disabled");
147  get_validity (gpgme_key_t key)      return get_key_trust2 (NULL, key->uids->validity, 0, 0);
148  {  }
149      int val;  
150      val = key->expired;  
151      if (val)  /* Return the preferred sym. algorithm from @key as a string. */
152          return _("Expired");      static const char*
153      val = key->revoked;  get_pref_cipher (winpt_key_t k)
154      if (val)  {
155          return _("Revoked");      const char *sym_prefs=NULL;    
156      return get_key_trust2 (NULL, key->uids->validity, 0, 0);  
157  }      if (k->is_v3)
158            return "IDEA";
159        if (!k->ext->sym_prefs)
160  /* Return the preferred sym. algorithm from @key as a string. */          return "3DES";
161  static const char*      switch (*k->ext->sym_prefs) {
162  get_pref_cipher (winpt_key_t k)      case 1: return "IDEA";
163  {      case 2: return "3DES";
164      const char *sym_prefs=NULL;          case 3: return "CAST5";
165        case 4: return "Blowfish";
166      if (k->is_v3)      case 7:
167          return "IDEA";      case 8:
168      if (!k->ext->sym_prefs)      case 9: return "AES";
169          return "3DES";      case 10:return "Twofish";
170      switch (*k->ext->sym_prefs) {      }
171      case 1: return "IDEA";      return "Unknown";
172      case 2: return "3DES";  }
173      case 3: return "CAST5";  
174      case 4: return "Blowfish";  
175      case 7:  /* Return true if the key has designated revokers. */
176      case 8:  static bool
177      case 9: return "AES";  check_for_desig_rev (gpgme_key_t key)
178      case 10:return "Twofish";  {
179      }      winpt_key_s k;
180      return "Unknown";      memset (&k, 0, sizeof (k));
181  }      if (!winpt_get_pubkey (key->subkeys->keyid, &k))
182            return k.ext->gloflags.has_desig_rev? true : false;
183        return false;
184  /* Return true if the key has designated revokers. */  }
185  static bool  
186  check_for_desig_rev (gpgme_key_t key)  
187  {  /* Print information (name) of the smart card. */
188      winpt_key_s k;  static const char*
189      memset (&k, 0, sizeof (k));  get_card_type (winpt_key_t k)
190      if (!winpt_get_pubkey (key->subkeys->keyid, &k))  {    
191          return k.ext->gloflags.has_desig_rev? true : false;      static char buf[64];
192      return false;  
193  }      if (!k->ext->card_type)
194            return "";
195        _snprintf (buf, sizeof (buf)-1, _("Card-Type: %s\r\n"), k->ext->card_type);
196  /* Print information (name) of the smart card. */      return buf;
197  static const char*  }
198  get_card_type (winpt_key_t k)  
199  {      
200      static char buf[64];  /* Display the key information for key @k.
201       Return value: gpgme key on success. */
202      if (!k->ext->card_type)  static void
203          return "";  display_key_info (HWND dlg, winpt_key_t k, gpgme_key_t *r_key)
204      _snprintf (buf, sizeof (buf)-1, _("Card-Type: %s\r\n"), k->ext->card_type);  {
205      return buf;      struct winpt_key_s k2;
206  }      gpgme_key_t sk, key;
207        char info[512];
208        const char *inf;
209  /* Display the key information for key @k.      u32 created, expires;    
210     Return value: gpgme key on success. */  
211  static void      memset (&k2, 0, sizeof (k2));      
212  display_key_info (HWND dlg, winpt_key_t k, gpgme_key_t *r_key)      if (k->key_pair)
213  {          winpt_get_seckey (k->keyid, &k2);
214      struct winpt_key_s k2;      else    
215      gpgme_key_t sk, key;          winpt_get_pubkey (k->keyid, &k2);
216      char info[512];      sk = k2.ctx;        
217      const char *inf;      if (sk)
218      u32 created, expires;              k->is_protected = k2.is_protected;
219        if (get_pubkey (k->keyid, &key))
220      memset (&k2, 0, sizeof (k2));                BUG (0);    
221      if (k->key_pair)      created = key->subkeys->timestamp;  
222          winpt_get_seckey (k->keyid, &k2);      expires = key->subkeys->expires;    
223      else          _snprintf (info, DIM (info)-1,
224          winpt_get_pubkey (k->keyid, &k2);                 _("Type: %s\r\n"
225      sk = k2.ctx;                         "Key ID: %s\r\n"
226      if (sk)                 "Algorithm: %s\r\n"
227          k->is_protected = k2.is_protected;                 "Size: %s\r\n"
228      if (get_pubkey (k->keyid, &key))                 "Created: %s\r\n"
229          BUG (0);                     "Expires: %s\r\n"
230      created = key->subkeys->timestamp;                   "Validity: %s\r\n"
231      expires = key->subkeys->expires;                     "Cipher: %s\r\n"
232      _snprintf (info, DIM (info)-1,                 "%s\r\n"),
233                 _("Type: %s\r\n"                 get_key_type (key),
234                 "Key ID: %s\r\n"                 k->keyid,
235                 "Algorithm: %s\r\n"                 get_key_algo (key, 0),
236                 "Size: %s\r\n"                 get_key_size (key, 0),
237                 "Created: %s\r\n"                 get_key_created (created),
238                 "Expires: %s\r\n"                 get_key_expire_date (expires),
239                 "Validity: %s\r\n"                 get_validity (key),
240                 "Cipher: %s\r\n"                 get_pref_cipher (&k2),
241                 "%s\r\n"),                 get_card_type (&k2));
242                 get_key_type (key),  
243                 k->keyid,      SetDlgItemText (dlg, IDC_KEYPROPS_INFO, info);
244                 get_key_algo (key, 0),      SetDlgItemText (dlg, IDC_KEYPROPS_FPR, get_key_fpr (key));  
245                 get_key_size (key, 0),      inf = ownertrust_to_string (key->owner_trust);
246                 get_key_created (created),      SetDlgItemText (dlg, IDC_KEYPROPS_OT, inf);
247                 get_key_expire_date (expires),  
248                 get_validity (key),      *r_key = key;
249                 get_pref_cipher (&k2),  }
250                 get_card_type (&k2));  
251    
252      SetDlgItemText (dlg, IDC_KEYPROPS_INFO, info);  /* Dialog box procedure to show the key properties. */
253      SetDlgItemText (dlg, IDC_KEYPROPS_FPR, get_key_fpr (key));    BOOL CALLBACK
254      inf = ownertrust_to_string (key->owner_trust);  keyprops_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
255      SetDlgItemText (dlg, IDC_KEYPROPS_OT, inf);  {
256        static winpt_key_t k;
257      *r_key = key;      static gpgme_key_t key;
258  }      gpgme_validity_t valid;
259        refresh_cache_s rcs = {0};
260        const char *inf;
261  /* Dialog box procedure to show the key properties. */      int cancel = 0;
262  BOOL CALLBACK      int rc;
263  keyprops_dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)      
264  {      /* XXX: static variable (k) prevent that the dialog can
265      static winpt_key_t k;              be opened twice. */
266      static gpgme_key_t key;      switch (msg) {
267      gpgme_validity_t valid;      case WM_INITDIALOG:
268      refresh_cache_s rcs = {0};          if (!lparam)
269      const char *inf;              dlg_fatal_error (dlg, "Could not get dialog param!");
270      int cancel = 0;          k = (winpt_key_t)lparam;
271      int rc;          #ifndef LANG_DE
272                SetWindowText (dlg, _("Key Properties"));
273      /* XXX: static variable (k) prevent that the dialog can          SetDlgItemText (dlg, IDC_KEYPROPS_OT_CHANGE, _("&Change"));
274              be opened twice. */          SetDlgItemText (dlg, IDC_KEYPROPS_REVOKERS, _("&Revokers"));
275      switch (msg) {          SetDlgItemText (dlg, IDC_KEYPROPS_CHANGE_PWD, _("Change &Passwd"));
276      case WM_INITDIALOG:          SetDlgItemText (dlg, IDC_KEYPROPS_OTINF, _("Ownertrust"));
277          if (!lparam)          #endif  
278              dlg_fatal_error (dlg, "Could not get dialog param!");  
279          k = (winpt_key_t)lparam;          display_key_info (dlg, k, &key);
280          #ifndef LANG_DE          if (!keyprops_load_photo (dlg, key, &valid)) {
281          SetWindowText (dlg, _("Key Properties"));              k->has_photo = 1;  
282          SetDlgItemText (dlg, IDC_KEYPROPS_OT_CHANGE, _("&Change"));              if (valid < GPGME_VALIDITY_MARGINAL)
283          SetDlgItemText (dlg, IDC_KEYPROPS_REVOKERS, _("&Revokers"));                  SetDlgItemText (dlg, IDC_KEYPROPS_IMGINF, _("Photo-ID not validated."));
284          SetDlgItemText (dlg, IDC_KEYPROPS_CHANGE_PWD, _("Change &Passwd"));          }
285          SetDlgItemText (dlg, IDC_KEYPROPS_OTINF, _("Ownertrust"));          if (k->key_pair)
286          #endif                EnableWindow (GetDlgItem (dlg, IDC_KEYPROPS_CHANGE_PWD), TRUE);
287            if (check_for_desig_rev (key))
288          display_key_info (dlg, k, &key);              EnableWindow (GetDlgItem (dlg, IDC_KEYPROPS_REVOKERS), TRUE);
289          if (!keyprops_load_photo (dlg, key, &valid)) {          center_window (dlg, NULL);
290              k->has_photo = 1;            SetForegroundWindow (dlg);      
291              if (valid < GPGME_VALIDITY_MARGINAL)          return TRUE;
292                  SetDlgItemText (dlg, IDC_KEYPROPS_IMGINF, _("Photo-ID not validated."));  
293          }      case WM_DESTROY:
294          if (k->key_pair)          unlink (get_photo_tmpname (dlg));
295              EnableWindow (GetDlgItem (dlg, IDC_KEYPROPS_CHANGE_PWD), TRUE);          break;
296          if (check_for_desig_rev (key))        
297              EnableWindow (GetDlgItem (dlg, IDC_KEYPROPS_REVOKERS), TRUE);      case WM_PAINT:
298          center_window (dlg, NULL);          if (k->has_photo)
299          SetForegroundWindow (dlg);                    keyprops_show_photo (dlg);
300          return TRUE;          break;
301    
302      case WM_DESTROY:      case WM_SYSCOMMAND:
303          unlink (get_photo_tmpname (dlg));          if (LOWORD (wparam) == SC_CLOSE)
304          break;              EndDialog (dlg, TRUE);
305                  return FALSE;
306      case WM_PAINT:          
307          if (k->has_photo)      case WM_COMMAND:
308              keyprops_show_photo (dlg);          switch (LOWORD (wparam)) {
309          break;          case IDOK:
310                EndDialog (dlg, TRUE);
311      case WM_SYSCOMMAND:              return TRUE;
312          if (LOWORD (wparam) == SC_CLOSE)              
313              EndDialog (dlg, TRUE);          case IDC_KEYPROPS_OT_CHANGE:
314          return FALSE;              if (do_check_key (key)) {
315                            msg_box (dlg, _("The status of this key is 'revoked' or 'expired'.\n"
316      case WM_COMMAND:                                  "You cannot change the ownertrust of such keys."),
317          switch (LOWORD (wparam)) {                                  _("WinPT Warning"), MB_ERR);
318          case IDOK:                  return TRUE;
319              EndDialog (dlg, TRUE);              }
320              return TRUE;              if( !k->key_pair && key->uids->validity < 3 ) {
321                                rc = msg_box( dlg, _("This is a non-valid key.\n"
322          case IDC_KEYPROPS_OT_CHANGE:                                       "Modifying the ownertrust has no effect on such keys.\n\n"
323              if (do_check_key (key)) {                                       "Do you really want to continue?"),
324                  msg_box (dlg, _("The status of this key is 'revoked' or 'expired'.\n"                                       _("WinPT Warning"), MB_ICONWARNING|MB_YESNO );
325                                  "You cannot change the ownertrust of such keys."),                  if (rc == IDNO)
326                                  _("WinPT Warning"), MB_ERR);                      return TRUE;
327                  return TRUE;              }
328              }              //GetDlgItemText (dlg, IDC_KEYPROPS_OT, info, sizeof info -1);
329              if( !k->key_pair && key->uids->validity < 3 ) {              dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_KEYEDIT_OWNERTRUST,
330                  rc = msg_box( dlg, _("This is a non-valid key.\n"                                dlg, (DLGPROC)keyedit_ownertrust_dlg_proc,
331                                       "Modifying the ownertrust has no effect on such keys.\n\n"                                (LPARAM)k, _("Change Ownertrust"),
332                                       "Do you really want to continue?"),                                IDS_WINPT_KEYEDIT_OWNERTRUST);
333                                       _("WinPT Warning"), MB_ICONWARNING|MB_YESNO );              if (k->callback.new_val == -1) { /* Cancel */
334                  if (rc == IDNO)                  EndDialog (dlg, FALSE);
335                      return TRUE;                  break;
336              }              }
337              //GetDlgItemText (dlg, IDC_KEYPROPS_OT, info, sizeof info -1);  
338              dialog_box_param (glob_hinst, (LPCSTR)IDD_WINPT_KEYEDIT_OWNERTRUST,              inf = ownertrust_to_string (k->callback.new_val);
339                                dlg, (DLGPROC)keyedit_ownertrust_dlg_proc,              SetDlgItemText (dlg, IDC_KEYPROPS_OT, inf);
340                                (LPARAM)k, _("Change Ownertrust"),              msg_box (dlg, _("Ownertrust successfully changed."),
341                                IDS_WINPT_KEYEDIT_OWNERTRUST);                       _("GnuPG Status"), MB_OK);
342              if (k->callback.new_val == -1) { /* Cancel */              
343                  EndDialog (dlg, FALSE);              /* XXX: modified ownertrust values can effect the entire
344                  break;                      WoT so we reload the cache. But this is very slow. */
345              }              memset (&rcs, 0, sizeof (rcs));
346                rcs.kr_reload = 1; rcs.kr_update = 1; /* reload only keylist */
347              inf = ownertrust_to_string (k->callback.new_val);              DialogBoxParam (glob_hinst, (LPCSTR)IDD_WINPT_KEYCACHE, dlg,
348              do_change_ownertrust (k, inf);                              keycache_dlg_proc, (LPARAM)&rcs);
349              SetDlgItemText (dlg, IDC_KEYPROPS_OT, inf);              return TRUE;
350              msg_box (dlg, _("Ownertrust successfully changed."),              
351                       _("GnuPG Status"), MB_OK);          case IDC_KEYPROPS_CHANGE_PWD:
352                            keyedit_change_passwd (k, dlg);        
353              /* reload only the keylist */              return TRUE;
354              rcs.kr_reload = 1; rcs.kr_update = 1;  
355              rcs.tr_update = 0;          case IDC_KEYPROPS_REVOKERS:
356              DialogBoxParam (glob_hinst, (LPCSTR)IDD_WINPT_KEYCACHE, dlg,              dialog_box_param (glob_hinst, (LPCTSTR)IDD_WINPT_KEYREVOKERS, dlg,
357                              keycache_dlg_proc, (LPARAM)&rcs);                                key_revokers_dlg_proc, (LPARAM)key,
358              return TRUE;                                _("Key Revokers"), IDS_WINPT_KEY_REVOKERS);
359                            break;
360          case IDC_KEYPROPS_CHANGE_PWD:          }
361              keyedit_change_passwd (k, dlg);              }
362              return TRUE;      
363        return FALSE;
364          case IDC_KEYPROPS_REVOKERS:  }
             dialog_box_param (glob_hinst, (LPCTSTR)IDD_WINPT_KEYREVOKERS, dlg,  
                               key_revokers_dlg_proc, (LPARAM)key, _("Key Revokers"),  
                               IDS_WINPT_KEY_REVOKERS);  
             break;  
         }  
     }  
       
     return FALSE;  
 }  

Legend:
Removed from v.34  
changed lines
  Added in v.41

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26