aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-05 01:21:23 +0000
committerNIIBE Yutaka <[email protected]>2023-07-05 01:29:23 +0000
commit3fb69641e84d420ee331023a53ac2961d17fa8b6 (patch)
tree6220ce7d4a34e067d247adb95667c6949f1cd172 /g10/main.h
parentgpg: Use gnupg_fd_t for encrypt_crypt and gpg_verify. (diff)
downloadgnupg-3fb69641e84d420ee331023a53ac2961d17fa8b6.tar.gz
gnupg-3fb69641e84d420ee331023a53ac2961d17fa8b6.zip
gpg: Use gnupg_fd_t for decryption and sign.
* g10/decrypt.c (decrypt_message_fd): Use gnupg_fd_t. * g10/plaintext.c (hash_datafile_by_fd): Use gnupg_fd_t. * g10/main.h: Fix the declarations. * g10/mainproc.c (struct mainproc_context): Use gnupg_fd_t for DATA_FD. (proc_compressed_cb, proc_signature_packets): Follow the change. (proc_signature_packets_by_fd): Use gnupg_fd_t. * g10/packet.h: Fix the declaration. -- GnuPG-bug-id: 6580 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/main.h b/g10/main.h
index dd86990df..38e6a9c22 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -498,14 +498,15 @@ void check_assert_signer_list (const char *mainpkhex, const char *pkhex);
/*-- decrypt.c --*/
int decrypt_message (ctrl_t ctrl, const char *filename );
-gpg_error_t decrypt_message_fd (ctrl_t ctrl, int input_fd, int output_fd);
+gpg_error_t decrypt_message_fd (ctrl_t ctrl, gnupg_fd_t input_fd,
+ gnupg_fd_t output_fd);
void decrypt_messages (ctrl_t ctrl, int nfiles, char *files[]);
/*-- plaintext.c --*/
int hash_datafiles( gcry_md_hd_t md, gcry_md_hd_t md2,
strlist_t files, const char *sigfilename, int textmode);
-int hash_datafile_by_fd ( gcry_md_hd_t md, gcry_md_hd_t md2, int data_fd,
- int textmode );
+int hash_datafile_by_fd (gcry_md_hd_t md, gcry_md_hd_t md2,
+ gnupg_fd_t data_fd, int textmode);
PKT_plaintext *setup_plaintext_name(const char *filename,IOBUF iobuf);
/*-- server.c --*/