1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-09-19 14:41:41 +02:00
gnupg/tests
NIIBE Yutaka af6c47b291
common,kbx,tests: Clean up the PIPE function API.
* common/call-gpg.c (_gpg_encrypt, _gpg_decrypt): Simply, use
gnupg_create_pipe.
* tests/gpgscm/ffi.c (do_inbound_pipe): Likewise.
* common/exechelp.h (gnupg_create_inbound_pipe): Use gnupg_fd_t
for native pipe descriptor and don't expose other end of pipe.
(gnupg_create_outbound_pipe): Ditto.
* common/exechelp-posix.c (create_pipe_and_estream): Clean up.
(gnupg_create_inbound_pipe): Fail if R_FD or R_FP is NULL.
(gnupg_create_outbound_pipe: Ditto.
* common/exechelp-w32.c (create_pipe_and_estream): Clean up.
(gnupg_create_inbound_pipe): Fail if R_FD or R_FP is NULL.
(gnupg_create_outbound_pipe: Ditto.
(gnupg_create_pipe): Move the code from original
create_pipe_and_estream to call _open_osfhandle.
* common/exectool.c (gnupg_exec_tool_stream): Follow the change of
API.
* kbx/kbx-client-util.c (prepare_data_pipe): Likewise.

--

GnuPG-bug-id: 7194
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2024-07-09 10:41:03 +09:00
..
cms tests: Add a sample PDF with a signature 2024-04-03 09:52:14 +02:00
extrasamples Added sample certificates. 2006-05-16 09:54:41 +00:00
fake-pinentries docs: Point to https://dev.gnupg.org/ . 2017-05-18 15:05:57 -04:00
gpgme tests: Fix tests/gpgme for in-source-tree builds. 2022-12-21 10:52:24 +09:00
gpgscm common,kbx,tests: Clean up the PIPE function API. 2024-07-09 10:41:03 +09:00
migrations tests: Fix to support --enable-all-tests and variants. 2022-11-24 15:57:25 +09:00
openpgp indent: Fix spelling 2024-05-31 12:28:32 +02:00
pkits tests: More fix for semihosted environment. 2022-12-01 17:09:45 +09:00
tpm2dtests indent: Fix spelling 2024-05-31 12:28:32 +02:00
asschk.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
gpgconf.ctl.in tests: Restrict the use of gpgconf.ctl to make check. 2022-09-14 12:05:21 +02:00
Makefile.am tests: New way to make use of gpgconf.ctl in tests. 2021-10-12 14:30:13 +02:00
run-tests.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00