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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26