gpgme-tool: Fix handling of file descriptors
authorWerner Koch <wk@gnupg.org>
Wed, 26 Sep 2012 07:37:22 +0000 (09:37 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 26 Sep 2012 07:37:22 +0000 (09:37 +0200)
commit193eb62538b9413e0dfbd04c075f871d5aa9130b
tree27f9334f014159a9a9d77c6509b8e09cdefc2c30
parentd230b7c2f9ad5964c92ee22dc9532d9ac119600a
gpgme-tool: Fix handling of file descriptors

* src/gpgme-tool.c (server_reset_fds): Use close/CloseHandle instead
of the assuan close functions.
(_cmd_decrypt_verify, _cmd_sign_encrypt, cmd_verify, cmd_import)
(cmd_export, cmd_genkey, cmd_getauditlog): Use SERVER object instead
of assuan_get_*_fd functions.
--

Although we used our own handlers for INPUT and OUTPUT, we still used
assuan_get_input_fd, assuan_get_output_fd and their close functions.
That clearly can't work because libassuan does not have any values for
them.
src/gpgme-tool.c