1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-09 21:28:51 +01:00
gnupg/tests/gpgscm
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
..
ffi-private.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ffi.c common,kbx,tests: Clean up the PIPE function API. 2024-07-09 10:41:03 +09:00
ffi.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ffi.scm gpgscm: Improve error handling of foreign functions. 2017-06-19 16:51:29 +02:00
gnupg.scm tests: Fix no gpg-agent upon removal of GNUPGHOME. 2018-04-04 20:27:08 +09:00
init.scm tests: Avoid auto-removal when test fails. 2022-04-26 17:20:08 +09:00
lib.scm gpgscm: Emit JUnit-style XML reports. 2017-04-24 14:28:57 +02:00
LICENSE.TinySCHEME Add license notices for TinySCHEME. 2016-06-17 18:53:45 +02:00
main.c Remove the now obsolete argparse code. 2020-02-22 09:52:48 +01:00
Makefile.am tests: Move the makefile parser. 2017-05-11 17:41:03 +02:00
makefile.scm tests: Move the makefile parser. 2017-05-11 17:41:03 +02:00
Manual.txt Fix more spelling 2016-09-17 16:00:37 +09:00
opdefines.h gpgscm: Make tags mandatory. 2017-04-10 14:57:30 +02:00
private.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
repl.scm gpgscm: Library improvements. 2017-07-14 12:57:41 +02:00
scheme-config.h gpgscm: Use system strlwr if available. 2017-03-07 14:33:27 +01:00
scheme-private.h gpgscm: Create and re-use frame objects. 2017-05-03 15:36:16 +02:00
scheme.c tests:gpgscm: Add annotation for unreachable code for GCC. 2023-06-26 14:47:28 +09:00
scheme.h gpgscm: Mmap script files. 2017-04-10 14:57:35 +02:00
small-integers.h gpgscm: Allocate small integers in the rodata section. 2017-04-07 13:50:20 +02:00
t-child.c gpgscm: Fix test program. 2017-04-12 12:05:53 +09:00
t-child.scm common,agent,gpg,dirmngr,g13,scd,tests,tools: New spawn function. 2023-05-11 19:18:21 +09:00
tests.scm tests: Fix call-with-io deadlock. 2023-06-08 14:39:50 +09:00
time.scm tests: Check expiration times of created keys. 2017-02-15 14:53:07 +01:00
xml.scm gpgscm: Emit JUnit-style XML reports. 2017-04-24 14:28:57 +02:00