diff options
author | Werner Koch <[email protected]> | 2009-09-30 15:28:38 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-09-30 15:28:38 +0000 |
commit | 27c1b4bef84dcb3a77147887817f228ced8c1b31 (patch) | |
tree | 27817fb6ac1ae22d6bba472de9f55e998534c3df /g10/sign.c | |
parent | Rename encode.c to encrypt.c. (diff) | |
download | gnupg-27c1b4bef84dcb3a77147887817f228ced8c1b31.tar.gz gnupg-27c1b4bef84dcb3a77147887817f228ced8c1b31.zip |
Some changes to suport g13.
Diffstat (limited to '')
-rw-r--r-- | g10/sign.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/sign.c b/g10/sign.c index 0528427db..92617a981 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -801,7 +801,8 @@ sign_file( strlist_t filenames, int detached, strlist_t locusr, else if( opt.verbose ) log_info(_("writing to `%s'\n"), outfile ); } - else if( (rc = open_outfile( fname, opt.armor? 1: detached? 2:0, &out ))) + else if( (rc = open_outfile (GNUPG_INVALID_FD, fname, + opt.armor? 1: detached? 2:0, &out ))) goto leave; /* prepare to calculate the MD over the input */ @@ -1110,7 +1111,7 @@ clearsign_file( const char *fname, strlist_t locusr, const char *outfile ) else if( opt.verbose ) log_info(_("writing to `%s'\n"), outfile ); } - else if( (rc = open_outfile( fname, 1, &out )) ) + else if( (rc = open_outfile (GNUPG_INVALID_FD, fname, 1, &out )) ) goto leave; iobuf_writestr(out, "-----BEGIN PGP SIGNED MESSAGE-----" LF ); @@ -1275,7 +1276,7 @@ sign_symencrypt_file (const char *fname, strlist_t locusr) cfx.dek->use_mdc=1; /* now create the outfile */ - rc = open_outfile (fname, opt.armor? 1:0, &out); + rc = open_outfile (GNUPG_INVALID_FD, fname, opt.armor? 1:0, &out); if (rc) goto leave; |