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

Diff of /trunk/Src/wptGPGUtil.cpp

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

revision 36 by werner, Thu Oct 27 15:25:13 2005 UTC revision 48 by werner, Mon Oct 31 21:14:11 2005 UTC
# Line 22  Line 22 
22  #endif  #endif
23    
24  #include <windows.h>  #include <windows.h>
 #include <windows.h>  
25  #include <sys/stat.h>  #include <sys/stat.h>
26    
27  #include "gpgme.h"  #include "gpgme.h"
# Line 326  gpg_export_seckey (const char *keyid, co Line 325  gpg_export_seckey (const char *keyid, co
325  }  }
326    
327    
328  /* If @export is 1, export the ownertrust data to the  /* If EXPORTFLAG is 1, export the ownertrust data to the
329     buffer @data. Otherwise import the ownertrust data from @data.     buffer DATA. Otherwise import the ownertrust data from DATA.
330     Return value: 0 on success. */     Return value: 0 on success. */
331  gpgme_error_t  gpgme_error_t
332  gpg_manage_ownertrust (char **data, int export)  gpg_manage_ownertrust (char **data, int exportflag)
333  {  {
334      gpgme_error_t err = gpg_error (GPG_ERR_NO_ERROR);      gpgme_error_t err = gpg_error (GPG_ERR_NO_ERROR);
335      HANDLE out = NULL, in = NULL;      HANDLE out = NULL, in = NULL;
# Line 346  gpg_manage_ownertrust (char **data, int Line 345  gpg_manage_ownertrust (char **data, int
345      if (!cmd)      if (!cmd)
346          abort ();            abort ();  
347      sprintf (cmd, "%s %s", p,      sprintf (cmd, "%s %s", p,
348               export? "--export-ownertrust" : "--import-ownertrust");               exportflag? "--export-ownertrust" : "--import-ownertrust");
349    
350      if (export)      if (exportflag)
351          out = create_tmpfile ("gpg_ot_out");          out = create_tmpfile ("gpg_ot_out");
352      else {      else {
353          DWORD nw;          DWORD nw;

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26