c4bb93ec28
* assuan/assuan-io.c (_assuan_simple_read, _assuan_simple_write): Always use read/write (which means _gpgme_io_read and _gpgme_io_write). gpgme/ 2007-07-13 Marcus Brinkmann <marcus@g10code.de> * priv-io.h (_gpgme_io_set_close_notify): Change type of HANDLER to _gpgme_close_notify_handler. (_gpgme_close_notify_handler): New type. (_gpgme_io_dup): Remove prototype. * posix-io.c (notify_table, _gpgme_io_set_close_notify): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. (_gpgme_io_dup): Remove function. * w32-io.c (notify_table, _gpgme_io_set_close_notify, _gpgme_io_close): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. (_gpgme_io_dup): Remove function. * w32-glib-io.c (_gpgme_io_dup): Remove function. (_gpgme_io_set_close_notify, notify_table): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. * rungpg.c (close_notify_handler): Change return type to int, return 1. * engine-gpgsm.c (close_notify_handler): Change return type to int, return 0 for status FD and 1 for all other FDs. (start): Do not duplicate the status FD.
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
This is a modified copy of the libassuan library. Don't modify it,
|
|
but instead modify the original Assuan library and merge the changes
|
|
back into this copy.
|
|
|
|
The changes to the original libassuan, that have to preserved when
|
|
updating this directory, are:
|
|
|
|
* Makefile.am
|
|
** Build the library with libtool as a convenience library, which can
|
|
be linked into the shared library GPGME.
|
|
** Do not install the library or the header file.
|
|
** Define -D_ASSUAN_IN_GPGME_BUILD_ASSUAN to wrap some POSIX functions
|
|
with ATH replacements.
|
|
|
|
* assuan.h
|
|
** Preserve the block between "Begin/End GPGME specific modifications".
|
|
In particular make sure that
|
|
#define _ASSUAN_EXT_SYM_PREFIX _gpgme_
|
|
#define _ASSUAN_NO_PTH
|
|
#define _ASSUAN_NO_FIXED_SIGNALS
|
|
#define _ASSUAN_USE_DOUBLE_FORK
|
|
are defined. This puts all exported Assuan functions in the _gpgme
|
|
namespace. It also wraps all system functions that are wrapped by
|
|
GNU Pth to _gpgme wrappers.
|
|
|
|
* assuan-io-pth.c
|
|
We don't need this file as GPGME doesn't use sendmsg and recvmsg.
|
|
If it would, we would need to pick up the W32 implementation.
|
|
|
|
* assuan-io.c
|
|
** _assuan_simple_read() and _assuan_simple_write() must always use
|
|
read()/write() (which actually translates to _gpgme_io_read() and
|
|
_gpgme_io_write()).
|
|
|
|
|
|
Copyright 2004, 2007 g10 Code GmbH
|
|
|
|
This file is free software; as a special exception the author gives
|
|
unlimited permission to copy and/or distribute it, with or without
|
|
modifications, as long as this notice is preserved.
|
|
|
|
This file is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|