diff options
author | Werner Koch <[email protected]> | 2010-06-07 15:11:35 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-06-07 15:11:35 +0000 |
commit | c8eb7bd83995801023dbfe876ffd81c9a6ff9d41 (patch) | |
tree | cb99962c83aa90e38d7b44b39ee2a431f1afd7f3 /common/sysutils.c | |
parent | Add unfinished gpgtar. (diff) | |
download | gnupg-c8eb7bd83995801023dbfe876ffd81c9a6ff9d41.tar.gz gnupg-c8eb7bd83995801023dbfe876ffd81c9a6ff9d41.zip |
Change OpenPGP test framework to run under the control of the agent.
Diffstat (limited to 'common/sysutils.c')
-rw-r--r-- | common/sysutils.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/sysutils.c b/common/sysutils.c index c6c9bda8e..25dd6a7c4 100644 --- a/common/sysutils.c +++ b/common/sysutils.c @@ -299,11 +299,16 @@ translate_sys2libc_fd (gnupg_fd_t fd, int for_write) } /* This is the same as translate_sys2libc_fd but takes an integer - which is assumed to be such an system handle. */ + which is assumed to be such an system handle. On WindowsCE the + passed FD is a rendezvous ID and the function finishes the pipe + creation. */ int translate_sys2libc_fd_int (int fd, int for_write) { -#ifdef HAVE_W32_SYSTEM +#if HAVE_W32CE_SYSTEM + fd = _assuan_w32ce_finish_pipe fd, for_write); + return translate_sys2libc_fd ((void*)fd, for_write); +#elif HAVE_W32_SYSTEM if (fd <= 2) return fd; /* Do not do this for error, stdin, stdout, stderr. */ |