/[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 175 by twoaday, Tue Feb 7 08:58:04 2006 UTC revision 181 by twoaday, Tue Mar 14 11:01:22 2006 UTC
# Line 123  keycache_init (const char *pubring, cons Line 123  keycache_init (const char *pubring, cons
123      p = get_reg_entry (HKEY_CURRENT_USER, "Software\\WinPT", "nKeys");      p = get_reg_entry (HKEY_CURRENT_USER, "Software\\WinPT", "nKeys");
124      if (p && *p != ' ') {      if (p && *p != ' ') {
125          val = atoi (p);          val = atoi (p);
126          free_if_alloc (p);          free_if_alloc (p);      
         memset (&pfx, 0, sizeof (pfx));  
127      }      }
128    
129        memset (&pfx, 0, sizeof (pfx));
130      /* Release old contexts first. */      /* Release old contexts first. */
131      keycache_release (0);      keycache_release (0);
132    
# Line 141  keycache_init (const char *pubring, cons Line 141  keycache_init (const char *pubring, cons
141      if (!err)      if (!err)
142          err = gpg_keycache_init (sec, NULL, 1);          err = gpg_keycache_init (sec, NULL, 1);
143      if (!err && pubring && *pubring)      if (!err && pubring && *pubring)
144          err = gpg_keycache_prepare( pub, pubring, NULL);          err = gpg_keycache_prepare (pub, pubring, NULL);
145      if (!err && secring && * secring)      if (!err && secring && * secring)
146          err = gpg_keycache_prepare (sec, NULL, secring);          err = gpg_keycache_prepare (sec, NULL, secring);
147      if (!err)      if (!err)
# Line 177  get_key_from_cache (const char *keyid, g Line 177  get_key_from_cache (const char *keyid, g
177          *r_key = NULL;          *r_key = NULL;
178      cache = keycache_get_ctx (mode);      cache = keycache_get_ctx (mode);
179      if (!cache)      if (!cache)
180          BUG( NULL );          BUG (0);
181      if (!c)      if (!c)
182          err = gpg_keycache_find_key (cache, keyid, 0, r_key);          err = gpg_keycache_find_key (cache, keyid, 0, r_key);
183      else      else

Legend:
Removed from v.175  
changed lines
  Added in v.181

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26