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

Diff of /trunk/Src/wptGPG.cpp

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

revision 137 by twoaday, Mon Jan 9 14:01:51 2006 UTC revision 138 by twoaday, Mon Jan 9 14:20:00 2006 UTC
# Line 364  check_gnupg_engine (const char *need_gpg Line 364  check_gnupg_engine (const char *need_gpg
364      int rc = 1;      int rc = 1;
365    
366      /* Convert the needed GPG version to the integer format. */      /* Convert the needed GPG version to the integer format. */
367      rc = parse_version_nr (need_gpg_ver,      if (parse_version_nr (need_gpg_ver,
368                             &need_major, &need_minor, &need_patch);                            &need_major, &need_minor, &need_patch))
369      if (rc)          return 1;
         return rc;  
370            
371      gpgme_new (&ctx);      gpgme_new (&ctx);
372      inf = gpgme_ctx_get_engine_info (ctx);      inf = gpgme_ctx_get_engine_info (ctx);
# Line 382  check_gnupg_engine (const char *need_gpg Line 381  check_gnupg_engine (const char *need_gpg
381      if (strstr (eng, "IDEA"))      if (strstr (eng, "IDEA"))
382          idea_available = 1;          idea_available = 1;
383      free (eng);      free (eng);
384      rc = parse_version_nr (inf->version, &major, &minor, &patch);      if (parse_version_nr (inf->version, &major, &minor, &patch)) {
     if (rc) {  
385          gpgme_release (ctx);          gpgme_release (ctx);
386          return rc;          return 1;
387      }      }
388    
389      if (major > need_major)      if (major > need_major)

Legend:
Removed from v.137  
changed lines
  Added in v.138

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26