diff options
author | NIIBE Yutaka <[email protected]> | 2023-07-14 06:52:08 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-07-14 06:52:08 +0000 |
commit | ee9e3578ce30892ce86276819f0eedf8fb3f6e47 (patch) | |
tree | 7e3d77db4a7fbe497cba74373e1e63dd1a86d081 /g10/main.h | |
parent | gpg: Use is_secured_filename before opening the file. (diff) | |
download | gnupg-ee9e3578ce30892ce86276819f0eedf8fb3f6e47.tar.gz gnupg-ee9e3578ce30892ce86276819f0eedf8fb3f6e47.zip |
gpg: Use gnupg_fd_t for iobuf_get_fd and is_secured_file.
* common/iobuf.c (iobuf_get_fd): Return type is now gnupg_fd_t.
* common/iobuf.h (iobuf_get_fd): Fix the return type.
* g10/misc.c (is_secured_file): Argument is now gnupg_fd_t.
* g10/main.h (is_secured_file): Fix the argument type.
--
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 38e6a9c22..c202dacb8 100644 --- a/g10/main.h +++ b/g10/main.h @@ -107,7 +107,7 @@ char *make_radix64_string( const byte *data, size_t len ); void trap_unaligned(void); void register_secured_file (const char *fname); void unregister_secured_file (const char *fname); -int is_secured_file (int fd); +int is_secured_file (gnupg_fd_t fd); int is_secured_filename (const char *fname); u16 checksum_u16( unsigned n ); u16 checksum( const byte *p, unsigned n ); |