aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix C++ users.Marcus Brinkmann2011-02-021-1/+1
| | | | | | 2011-02-02 Marcus Brinkmann <[email protected]> * assuan.h.in: Replace namespace by _namespace.
* Fix C++ users.Marcus Brinkmann2011-02-022-2/+7
| | | | | | 2011-02-02 Marcus Brinkmann <[email protected]> * assuan.h.in: Replace namespace by _namespace.
* Extend system hooks table by socket and connect functions.Marcus Brinkmann2011-02-0210-10/+133
| | | | | | | | | | | | | | | | | | | | | | | | | 2011-02-02 Marcus Brinkmann <[email protected]> * assuan-defs.h (_assuan_socket, _assuan_connect): New prototypes. * assuan.h.in (ASSUAN_SYSTEM_HOOKS_VERSION): Bumped to 2. (struct assuan_system_hooks): Add socket and connect members. (__assuan_socket, __assuan_connect): New prototypes. (_ASSUAN_SYSTEM_PTH_IMPL): Add socket and connect members. * assuan-socket-connect.c (assuan_socket_connect): Call _assuan_socket and _assuan_connect instead _assuan_sock_new and _assuan_sock_connect. (libassuan.def, libassuan.vers): Add __assuan_socket and __assuan_connect. * system.c (_assuan_system_hooks_copy): Initialize destination from system hooks, so we don't get any NULL pointers if there is a version mismatch. Support version 2 of the system hook structure. (_assuan_socket, _assuan_connect): New functions. * system-posix.c (__assuan_socket, __assuan_connect): New functions. (_assuan_system_hooks): Add __assuan_socketm, __assuan_connect. * system-w32.c (__assuan_socket, __assuan_connect): New functions. (_assuan_system_hooks): Add __assuan_socketm, __assuan_connect. * system-w32ce.c (__assuan_socket, __assuan_connect): New functions. (_assuan_system_hooks): Add __assuan_socketm, __assuan_connect.
* Check malloc and CreateEvent return codes.Werner Koch2010-12-202-0/+26
|
* Typo fixes.Werner Koch2010-12-144-22/+170
| | | | | Improved gpgcemgr
* 2010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-172-0/+17
| | | | | | | | * vasprintf.c (int_vasprintf) [HAVE_W32CE_SYSTEM && _MSC_VER]: Just use a fixed size buffer, as va_copy is not easy to fake.
* 2010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-172-48/+210
| | | | | | | | | | | | | * gpgcedev.c (struct pipeimpl_s): Add member monitor_rvid. (struct monitor_s, monitor_t): New types. (monitor_table, monitor_table_size): New static variables. (pipeimpl_new): Initialize monitor_rvid. (allocate_monitor): New function. (make_pipe): Also try the monitor_table if the opnctx_table fails. (monitor): Renamed to ... (monitor_main): ... this. Remove from monitor_table when done. (assign_rvid): Add to monitor table when creating monitor thread.
* Add log device to gpgcedevWerner Koch2010-11-153-116/+641
|
* Chnage directory layout for MSC buildsWerner Koch2010-11-021-1/+1
|
* Replace open/fdopen stuff by CreateFile et al.Werner Koch2010-11-012-21/+113
|
* 2010-11-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-0111-19/+44
| | | | | | | | | | | | | | | * configure.ac: Check for fcntl.h. 2010-11-01 Marcus Brinkmann <[email protected]> * assuan-socket.c, assuan-uds.c, system.c, assuan-pipe-server.c, assuan-pipe-connect.c [!HAVE_FCNTL_H]: Don't include fcntl.h. * assuan-buffer.c [!HAVE_W32CE_SYSTEM]: Do not include process.h. * assuan-socket.c [!HAVE_W32CE_SYSTEM]: Do not include io.h. * w32-includes.inc.h: Include winsock2.h before ws2tcpip.h. * sysutils.c (w32_read_registry): Replace goto label "leave" by "out" (as leave is defined by some Windows header file). * assuan-inquire.c: Likewise.
* Changes to allow building the CE version with MSC.Werner Koch2010-11-0123-52/+180
|
* Fix portability bug#1282.Werner Koch2010-09-172-0/+8
|
* Add a no_logging flag.Werner Koch2010-09-015-1/+21
|
* Prepare for a gpg-error changeWerner Koch2010-08-191-1/+1
|
* doc changesWerner Koch2010-08-112-7/+6
|
* Add ASSUAN_CONVEY_COMMENTS flag.Werner Koch2010-08-117-9/+45
|
* 2010-08-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-08-032-43/+263
| | | | | | | | | | | | | * gpgcedev.c (GPGCEDEV_IOCTL_ASSIGN_RVID): New call ASSIGN_RVID. (PIPE_FLAG_HALT_MONITOR): New flag. (struct pipeimpl_s): New members monitor_proc, monitor_access. (pipeimpl_new): Initialize them. (assert_pipeimpl): New function. (access_opnctx, make_pipe): Use it. (make_pipe): If there is a monitor, halt it. (monitor, assign_rvid): New functions. (GPG_IOControl): Handle GPGCEDEV_IOCTL_ASSIGN_RVID.
* 2010-08-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-08-022-94/+114
| | | | | | | | * gpgcedev.c: Use index (between 1 and table size) into opnctx_table as public context identifiers, instead using pointers into the table directly (which are not stable under table resize). (OPNCTX_TO_IDX, OPNCTX_FROM_IDX, OPNCTX_VALID_IDX_P): New macros.
* Handle NOTIFY event.Werner Koch2010-06-293-3/+187
|
* 2010-06-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-06-103-4/+44
| | | | | | | | | | | | * assuan-handler.c (std_handler_input, std_handler_output) [HAVE_W32CE_SYSTEM]: Finish the pipe. We must do this here, because otherwise assuan_close_input_fd() and assuan_close_output_fd() can't work. * system-w32ce.c (_assuan_w32ce_finish_pipe): Call SetLastError in error case. (__assuan_close): Save WSAGetLastError before trashing it! Otherwise handle is never closed and GPGME hangs.
* 2010-06-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-06-103-0/+50
| | | | | | | | | * w32ce-add.h (ASSUAN_STDIN, ASSUAN_STDOUT): Define magic handle values. * system-w32ce.c (__assuan_read, __assuan_write): Handle magic handle values differently. * system-w32ce.c (_assuan_w32ce_finish_pipe): Return error on RVID 0.
* 2010-06-09 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-06-092-0/+81
| | | | | | | | | | | * gpgcedev.c (GPGCEDEV_IOCTL_UNBLOCK): New ioctl. (PIPE_FLAG_UNBLOCK_READER, PIPE_FLAG_UNBLOCK_WRITER): New flags. (GPG_Read): Check if PIPE_FLAG_UNBLOCK_READER is set and return ERROR_BUSY in that case. (GPG_Write): Likewise for PIPE_FLAG_UNBLOCK_WRITER. (unblock_call): New function. (GPG_IOControl): Implement GPGCEDEV_IOCTL_UNBLOCK.
* 2010-06-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-06-072-275/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gpgcedev.c: This rewrite does away with troublesome race conditions (close vs everything else, for example) by simplifying the locking model. It also handles EOF, EPIPE, but still assumes that there is always only ever one reader and writer. Also, no need to treat ERROR_PIPE_NOT_CONNECTED and ERROR_BUSY as EAGAIN anymore. (struct pipeimpl_s, pipeimpl_t): New types. (PIPE_FLAG_NO_READER, PIPE_FLAG, NO_WRITER): New macros. (struct opnctx_s): Remove everything that's now in struct pipeimpl_s. Remove also assoc and locked. Add pipeimpl field. (pipeimpl_new, pipeimpl_unref, allocate_opnctx, verify_opnctx, access_opnctx): New functions. (get_new_opnctx, find_and_lock_opnctx, validate_and_lock_opnctx, unlock_opnctx): Removed. (GPG_Init, GPG_Deinit): Improve debugging output. (GPG_Open): Improve debugging output, use allocate_opnctx instead of get_new_opnctx. (GPG_Close): Improve debugging output. Rewrite to use reference counting. Also check if reader or writer is closed and set flags for triggering EOF or EPIPE. (GPG_Read): Improve debugging output. Rewrite using pipeimpl. Check for EOF. (GPG_Write): Improve debugging output. Rewrite using pipeimpl. Check for EPIPE. (make_pipe): Rewrite using pipeimpl. (GPG_IOControl): Improve debugging output.
* Sho the pid in the the hello line.Werner Koch2010-04-222-1/+17
|
* More robust detection of socketsWerner Koch2010-04-192-47/+90
|
* 2010-04-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-04-162-2/+10
| | | | | | * assuan-uds.c (uds_reader, uds_sendfd): Don't break strict aliasing rules.
* Rename device driver during installWerner Koch2010-04-142-0/+8
|
* Changes for W32CEWerner Koch2010-04-147-12/+49
|
* 2010-04-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-04-142-1/+5
| | | | | * Makefile.am (EXTRA_DIST): Add gpgcedev.def.
* Removed sysdep stuff from assuan.h.Werner Koch2010-04-0615-163/+484
| | | | | fixed a problem for W32CE and Pth.
* typo fixes and fix w32ce message formattingWerner Koch2010-03-303-2/+10
|
* Do not distribute assuan.h.Werner Koch2010-03-224-3/+35
|
* Changed the implementation of CreatePipe under W32CE.Werner Koch2010-03-2212-309/+687
| | | | | Reorganized the source.
* Refactored platform system code.Werner Koch2010-03-166-650/+1296
|
* Cleaned up the loggingWerner Koch2010-03-118-153/+247
|
* Add options and documentation for gpgcedev.Werner Koch2010-03-052-3/+75
|
* A couple of changes to eventually fully support W32ce.Werner Koch2010-02-2415-60/+1216
|
* 2010-02-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-02-033-1/+6
| | | | | * libassuan.vers, libassuan.def: Add assuan_set_sock_nonce.
* Cleanups for W32CE.Werner Koch2010-01-2810-8/+198
| | | | | Implement getenv replacement for W32CE.
* Changes to build for W32CE - does not yet work, though.Werner Koch2010-01-224-4/+19
|
* Prepare for a port to WindowsCE.Werner Koch2010-01-228-42/+49
|
* Fix NULL de-reference in debug code.Werner Koch2010-01-143-7/+16
|
* 2010-01-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-01-051-1/+3
| | | | | * configure.ac (_DARWIN_C_SOURCE): Define on frapple.
* 2010-01-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-01-054-3/+78
| | | | | | | | * debug.h (TRACE_LOG5): Add macro. * debug.c (_assuan_debug_buffer): Add newline * system.c: Add more debug output (conditioned on the compile-time DEBUG_SYSIO macro).
* Add comments.Marcus Brinkmann2010-01-051-2/+7
|
* Return and parse comment lines with the assuan_client_ functions.Werner Koch2009-12-143-6/+24
|
* Another one.Marcus Brinkmann2009-12-081-1/+1
|
* 2009-12-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-082-1/+4
| | | | | | * assuan.h (struct assuan_system_hooks): Don't use "namespace" as argument name in declaration (C++ keyword).
* 2009-12-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-082-0/+3
| | | | | * client.c (assuan_client_read_response): Fix linelen.