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

Diff of /trunk/Src/WinPT.cpp

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

revision 26 by twoaday, Mon Oct 17 08:49:30 2005 UTC revision 28 by twoaday, Thu Oct 20 12:35:59 2005 UTC
# Line 35  Line 35 
35  #include "wptContext.h"  #include "wptContext.h"
36  #include "wptCardEdit.h"  #include "wptCardEdit.h"
37    
38  HINSTANCE glob_hinst; /* global instance for the dialogs */  #define MIN_GPG_VER "1.4.3"
39  HWND glob_hwnd; /* global window handle for the dialogs */  
40    HINSTANCE glob_hinst;   /* global instance for the dialogs */
41    HWND glob_hwnd;         /* global window handle for the dialogs */
42  HWND activ_hwnd;  HWND activ_hwnd;
43  LOCK mo_file;  LOCK mo_file;
44  int scard_support = 0;  int scard_support = 0;
# Line 45  int mobile = 0; Line 47  int mobile = 0;
47  int gpg_read_only = 0;  int gpg_read_only = 0;
48  char gpgver[3];  char gpgver[3];
49    
50    
51    /* Load the key cache and rebuild the signature cache. */
52  static void  static void
53  update_keycache (HWND hwnd)  update_keycache (HWND hwnd)
54  {  {
# Line 54  update_keycache (HWND hwnd) Line 58  update_keycache (HWND hwnd)
58      rcs.tr_update = 1;      rcs.tr_update = 1;
59      DialogBoxParam (glob_hinst, (LPCSTR)IDD_WINPT_KEYCACHE, hwnd,      DialogBoxParam (glob_hinst, (LPCSTR)IDD_WINPT_KEYCACHE, hwnd,
60                      keycache_dlg_proc, (LPARAM)&rcs);                      keycache_dlg_proc, (LPARAM)&rcs);
61  } /* update_keycache */  }
62    
63    
64  /* Set GPGME debug mode. If @val is 0, the debug mode is disabled. */  /* Set GPGME debug mode. If @val is 0, the debug mode is disabled. */
# Line 151  get_prog_part (const char * fname, int u Line 155  get_prog_part (const char * fname, int u
155  static int  static int
156  check_crypto_engine (void)  check_crypto_engine (void)
157  {  {
158      int ma=1, mi=4, pa=1; /* GPG 1.4.1 */      int ma=1, mi=4, pa=3; /* GPG 1.4.3 */
159      int rc;      int rc;
160    
161      rc = check_gnupg_engine (&ma, &mi, &pa);      rc = check_gnupg_engine (&ma, &mi, &pa);
# Line 162  check_crypto_engine (void) Line 166  check_crypto_engine (void)
166      else if (rc) {      else if (rc) {
167          log_box (_("WinPT Error"), MB_ERR,          log_box (_("WinPT Error"), MB_ERR,
168                   _("Sorry, you need a newer GPG version.\n"                   _("Sorry, you need a newer GPG version.\n"
169                     "GPG version %d.%d.%d required GPG version 1.4.0"),                     "GPG version %d.%d.%d required GPG version "MIN_GPG_VER),
170                     ma, mi, pa);                     ma, mi, pa);
171          return rc;          return rc;
172      }      }

Legend:
Removed from v.26  
changed lines
  Added in v.28

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26