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

Diff of /trunk/Src/wptGPGME.cpp

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

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 20 by twoaday, Wed Jul 27 11:17:22 2005 UTC
# Line 49  keycache_reload (HWND dlg) Line 49  keycache_reload (HWND dlg)
49      refresh_cache_s rcs = {0};      refresh_cache_s rcs = {0};
50    
51      rcs.kr_reload = rcs.kr_update = 1;      rcs.kr_reload = rcs.kr_update = 1;
52      rcs.tr_update = 1;      /*rcs.tr_update = 1;*/
53      DialogBoxParam( glob_hinst, (LPCSTR)IDD_WINPT_KEYCACHE, dlg,                                              DialogBoxParam( glob_hinst, (LPCSTR)IDD_WINPT_KEYCACHE, dlg,                                        
54                      keycache_dlg_proc, (LPARAM)&rcs );                      keycache_dlg_proc, (LPARAM)&rcs );
55  } /* keycache_reload */  } /* keycache_reload */
# Line 75  keycache_release (void) Line 75  keycache_release (void)
75    
76    
77  gpgme_error_t  gpgme_error_t
78  keycache_init( const char *pubring, const char * secring )  keycache_update (int is_sec, const char *keyid)
79    {
80        gpgme_keycache_t ctx = pub;
81        if (is_sec)
82            ctx = sec;
83        return gpgme_keycache_update_key (ctx, is_sec, pub, keyid);
84    }
85    
86    
87    gpgme_error_t
88    keycache_init (const char *pubring, const char * secring)
89  {  {
90      struct progress_filter_s pfx;      struct progress_filter_s pfx;
91      gpgme_error_t err;      gpgme_error_t err;
# Line 87  keycache_init( const char *pubring, cons Line 97  keycache_init( const char *pubring, cons
97          reload = 0;          reload = 0;
98      }      }
99      p = get_reg_entry (HKEY_CURRENT_USER, "Software\\WinPT", "nKeys");      p = get_reg_entry (HKEY_CURRENT_USER, "Software\\WinPT", "nKeys");
100      if (p && *p != ' ')      if (p && *p != ' ') {
     {  
101          val = atoi (p);          val = atoi (p);
102          free_if_alloc (p);          free_if_alloc (p);
103          memset (&pfx, 0, sizeof pfx);          memset (&pfx, 0, sizeof pfx);

Legend:
Removed from v.2  
changed lines
  Added in v.20

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26