diff options
author | NIIBE Yutaka <[email protected]> | 2023-07-05 00:36:00 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-07-05 00:36:00 +0000 |
commit | 68d3a73ea78769280650a839c11c6f34ae39dadc (patch) | |
tree | 5275580de78a019e7fc5ab28b531fba203bf5846 /g10/main.h | |
parent | dirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP. (diff) | |
download | gnupg-68d3a73ea78769280650a839c11c6f34ae39dadc.tar.gz gnupg-68d3a73ea78769280650a839c11c6f34ae39dadc.zip |
gpg: Use gnupg_fd_t for open_outfile.
* g10/main.h (open_outfile): Use gnupg_fd_t instead of int.
* g10/openfile.c (open_outfile): Likewise. Use GNUPG_INVALID_FD.
* g10/dearmor.c (dearmor_file, enarmor_file): Follow the change.
* g10/encrypt.c (encrypt_simple): Likewise.
* g10/export.c (do_export): Likewise.
* g10/revoke.c (gen_desig_revoke, create_revocation): Likewise.
* g10/sign.c (sign_file, clearsign_file, sign_symencrypt_file):
Likewise.
--
GnuPG-bug-id: 6580
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h index b29e23e51..6d4a7cbf6 100644 --- a/g10/main.h +++ b/g10/main.h @@ -340,7 +340,7 @@ gpg_error_t generate_card_subkeypair (ctrl_t ctrl, kbnode_t pub_keyblock, int overwrite_filep( const char *fname ); char *make_outfile_name( const char *iname ); char *ask_outfile_name( const char *name, size_t namelen ); -int open_outfile (int out_fd, const char *iname, int mode, +int open_outfile (gnupg_fd_t out_fd, const char *iname, int mode, int restrictedperm, iobuf_t *a); char *get_matching_datafile (const char *sigfilename); iobuf_t open_sigfile (const char *sigfilename, progress_filter_context_t *pfx); |