aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* A couple of changes to eventually fully support W32ce.Werner Koch2010-02-2423-97/+2234
|
* 2010-02-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-02-033-1/+6
| | | | | * libassuan.vers, libassuan.def: Add assuan_set_sock_nonce.
* Add a run command.Werner Koch2010-01-291-0/+107
|
* Add some commands to the test server.Werner Koch2010-01-282-7/+391
|
* First take on Server for W32CEWerner Koch2010-01-281-0/+271
|
* Cleanups for W32CE.Werner Koch2010-01-2815-18/+251
| | | | | Implement getenv replacement for W32CE.
* Changes to build for W32CE - does not yet work, though.Werner Koch2010-01-228-13/+23
|
* Prepare for a port to WindowsCE.Werner Koch2010-01-2213-54/+114
|
* Fix NULL de-reference in debug code.Werner Koch2010-01-143-7/+16
|
* Post release fixup.Marcus Brinkmann2010-01-111-0/+6
|
* Change history. Urgs.Marcus Brinkmann2010-01-111-1/+1
|
* Post release fixup.Marcus Brinkmann2010-01-081-2/+2
|
* Pre-release fixup.Marcus Brinkmann2010-01-083-3/+7
|
* 2010-01-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-01-053-1/+8
| | | | | * 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
|
* 2009-12-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-222-1/+5
| | | | | * configure.ac: Do not use echo -n.
* Oops, changed wrong line.Marcus Brinkmann2009-12-151-1/+1
|
* 2009-12-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-154-8/+36
| | | | | * configure.ac: Bump version to 2.0.0.
* Just some pre-release clean ups.Marcus Brinkmann2009-12-154-16/+10
|
* 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-1/+5
| | | | | | * assuan.texi: Use our own copy of the setfont macro, as it takes an extra argument since texinfo 4.13.
* 2009-12-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-082-0/+3
| | | | | * client.c (assuan_client_read_response): Fix linelen.
* doc/Marcus Brinkmann2009-12-087-5/+27
| | | | | | | | | | | | | | 2009-12-08 Marcus Brinkmann <[email protected]> * assuan.texi (Contexts): Document ASSUAN_SPAWN_DETACHED. src/ 2009-12-08 Marcus Brinkmann <[email protected]> * assuan.h (ASSUAN_SPAWN_DETACHED): New macro. * assuan-pipe-connect.c (pipe_connect): Calculate spawn_flags from flags.
* Fix changelog.Marcus Brinkmann2009-12-081-1/+1
|
* 2009-12-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-082-1/+6
| | | | | * assuan_fd_from_posix_fd (assuan_fd_from_posix_fd): Handle invalid fd early.
* 2009-12-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-087-21/+51
| | | | | | | | | | | | | | | | | | * assuan-socket.c (get_nonce): Cast buffer to unsigned. (_assuan_sock_connect) [HAVE_W32_SYSTEM]: Drop ctx argument from read_port_and_nonce invocation. * system.c (assuan_fdopen) [HAVE_W32_SYSTEM]: Fix typo in variable name. (__assuan_spawn) [HAVE_W32_SYSTEM]: Fix types of fd and fdp. Use ASSUAN_INVALID_FD. Add missing context argument to _assuan_free, and fix call to _assuan_w32_strerror. Set errno on error. (__assuan_socketpair) [HAVE_W32_STRERROR]: Fix type of filedes argument. * assuan-pipe-connect.c (pipe_connect, assuan_pipe_connect, socketpair_connect) [HAVE_W32_SYSTEM]: Fix type of fd_child_list. * assuan-defs.h (_assuan_socketpair): Likewise for prototype. * assuan.h (assuan_fd_from_posix_fd): New static inline function.
* 2009-12-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-032-2/+28
| | | | | | | | | | * assuan-logging.c: (log_cats): New static variable. (TEST_LOG_CAT): New macro. (_assuan_log_handler): Check log category. (assuan_set_assuan_log_stream): Check ASSUAN_DEBUG for logging categories. (assuan_set_log_stream): Call assuan_set_assuan_log_stream.
* src/Marcus Brinkmann2009-12-0211-242/+306
| | | | | | | | | | | | | | | | | | | | | | | | | | 2009-12-02 Marcus Brinkmann <[email protected]> * Makefile.am (common_sources): Remove assuan-client.c. * assuan-client.c: File removed. * assuan.h (ASSUAN_RESPONSE_ERROR, ASSUAN_RESPONSE_OK) (ASSUAN_RESPONSE_STATUS, ASSUAN_RESPONSE_INQUIRE) (ASSUAN_RESPONSE_STATUS): New macros. (assuan_response_t): New type. (assuan_client_read_response, assuan_client_parse_response): New prototypes. * libassuan.def, libassuan.vers: Add assuan_client_read_response, assuan_client_parse_response. * assuan-client.c (xtoi_1, xtoi_2, assuan_transact) (_assuan_read_from_server): Moved to ... * client.c: ... here, with updates to use new functions and types. Include <stdlib.h>. (assuan_client_read_response, assuan_client_parse_response): New functions. * assuan-defs.h (_assuan_read_from_server): Use assuan_response_t. * assuan-pipe-connect.c (initial_handshake): Use assuan_response_t and ASSUAN_RESPONSE_OK. * assuan-socket-connect.c (assuan_socket_connect): Likewise.
* 2009-12-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-12-012-3/+10
| | | | | * assuan-pipe-server.c (assuan_init_pipe_server): Fix debug output.
* 2009-11-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-11-2713-63/+143
| | | | | | | | | | | | | | | | | | | * assuan.h (assuan_set_assuan_log_stream): Add prototype. * libassuan.def, libassuan.vers: Add back assuan_set_assuan_log_stream. * assuan-logging.c (assuan_set_assuan_log_stream): Add back. * context.c (assuan_get_pointer): Don't output debug info here. (assuan_get_peercred, assuan_get_pid): But do here. * system.c: Improve debug output. * assuan-defs.h (struct assuan_context_s): Rename pipe_mode to max_accepts. * assuan-listen.c (assuan_accept): Rework max accepts logic. * assuan-socket-server.c (assuan_init_socket_server), assuan-socket-connect.c (assuan_socket_connect), assuan-pipe-server.c (assuan_init_pipe_server), assuan-pipe-connect.c (socketpair_connect): Add debug output, set max_accepts instead of pipe_mode.
* doc/Marcus Brinkmann2009-11-259-14/+61
| | | | | | | | | | | | | | | | | | | | 2009-11-25 Marcus Brinkmann <[email protected]> * assuan.texi (Data Types): Document assuan_fdopen. src/ 2009-11-25 Marcus Brinkmann <[email protected]> * assuan.h (assuan_init_pipe_server): Change type of filedes to assuan_fd_t. (assuan_fdopen): New prototype. * libassuan.vers, libassuan.def: Add assuan_fdopen. * system.c (assuan_fdopen): New function. * assuan-pipe-server.c (assuan_init_pipe_server): Change type of filedes to assuan_fd_t. No longer translate fd to handle. Don't set to binary either (that doesn't do anything for handles, it only affects the libc fd).
* doc/Marcus Brinkmann2009-11-246-57/+58
| | | | | | | | | | | | | | | 2009-11-24 Marcus Brinkmann <[email protected]> * assuan.texi: Remove assuan_disconnect, assuan_deinit_server. Many smaller API fixes. src/ 2009-11-24 Marcus Brinkmann <[email protected]> * assuan.h (struct _assuan_peercred) [_WIN32]: Define dummy member so struct is not empty. * assuan-socket.c (assuan_sock_deinit): Set sock_ctx to NULL.
* 2009-11-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-11-1913-192/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (common_sources): Remove assuan-connect.c and add client.c. * client.c, server.c: New file. * assuan-defs.h (_assuan_disconnect): Remove. (struct assuan_context_s): Remove members deinit_handler. (_assuan_client_release, _assuan_client_finish) (_assuan_server_finish, _assuan_server_release): New. * assuan-socket-server.c (accept_connection_bottom): Use ASSUAN_INVALID_PID, not -1. (finish_connection, deinit_socket_server): Remove. (assuan_init_socket_server): Use _assuan_server_release. * assuan-socket-connect.c (do_finish, do_deinit): Remove. (assuan_socket_connect): Use _assuan_client_release. * assuan-pipe-connect.c (do_finish, do_deinit): Remove. (pipe_connect): Update deinitialization. (socketpair_connect): Here as well. * context.c (assuan_get_pid): New from ... * assuan-connect.c (assuan_get_pid): ... here. Remove this file. * assuan-pipe-server.c (_assuan_deinit_server, accept_connection) (deinit_pipe_server, finish_connection): Remove unused function. * assuan-listen.c (assuan_accept): Check CTX->accept_handler before calling. Initialize RC. Do not call finish handler for pipe server. * assuan-uds.c (_assuan_uds_deinit): Do not call finish handler.
* 2009-11-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-11-102-27/+137
| | | | | * assuan.texi: Various fixes and updates for the new interface.
* 2009-11-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-11-106-67/+58
| | | | | | | | | | | | | | | | * assuan-defs.h (struct assuan_context_s): Rename CTX->process_done to CTX->process_complete for clarity. Remove buffer variables from UDS. * assuan-pipe-connect.c (socketpair_connect): Allow FD_CHILD_LIST to be NULL. * assuan-handler.c: Rename CTX->process_done to CTX->process_complete for clarity. (process_request, process_next): Handle EOF. * assuan-uds.c (uds_reader): Remove buffering, which breaks the pending line algorithm in assuan-buffer.c. (_assuan_init_uds_io, _assuan_uds_deinit): Remove buffering. * assuan-buffer.c (_assuan_read_line): Add comment.
* 2009-11-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-11-0515-209/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/fdpassing.c (main): Call assuan_pipe_connect instead of assuan_pipe_connect_ext. doc/ 2009-11-05 Marcus Brinkmann <[email protected]> * assuan.texi (Client code): Document ASSUAN_PIPE_CONNECT_FDPASSING and ASSUAN_PIPE_CONNECT_DETACHED. (Server code): Document ASSUAN_SOCKET_SERVER_FDPASSING and ASSUAN_SOCKET_SERVER_ACCEPTED. (Utilities): Update documentation of assuan_get_peercred. src/ 2009-11-05 Marcus Brinkmann <[email protected]> * assuan.h (struct _assuan_peercred, assuan_peercred_t): New. (assuan_get_peercred): Define on all systems, return assuan_peercred_t. * assuan-defs.h (struct assuan_context_s): Move valid flag out of peercred struct, use struct _assuan_peercred. * libassuan.def: Add assuan_get_peercred. * assuan-connect.c (assuan_get_peercred): Moved to ... * context.c (assuan_get_peercred): ... here. Reimplement. * assuan-socket-server.c (accept_connection_bottom): Adjust access to peercred in context. * assuan.h (ASSUAN_PIPE_CONNECT_FDPASSING) (ASSUAN_PIPE_CONNECT_DETACHED, ASSUAN_SOCKET_SERVER_FDPASSING) (ASSUAN_SOCKET_SERVER_ACCEPTED, ASSUAN_SOCKET_CONNECT_FDPASSING): New. (assuan_pipe_connect_ext): Renamed to ... (assuan_pipe_connect): ... this, overwriting old prototype. (assuan_socket_connect_ext): Renamed to ... (assuan_socket_connect): ... this, overwriting old prototype. (assuan_init_socket_server_ext): Renamed to ... (assuan_init_socket_server): ... this, overwriting old prototype. * assuan-pipe-connect.c: Likewise for functions. * assuan-socket-connect.c: Likewise. * assuan-socket-server.c: Likewise. * libassuan.def (assuan_init_socket_server_ext) (assuan_pipe_connect_ext, assuan_socket_connect_ext): Removed. * libassuan.vers: Likewise.
* Fix last commit.Marcus Brinkmann2009-11-051-1/+2
|
* doc/Marcus Brinkmann2009-11-058-24/+50
| | | | | | | | | | | | | | | | | | 2009-11-05 Marcus Brinkmann <[email protected]> * assuan.texi (External I/O Loop Server): Document change to assuan_process_next. src/ 2009-11-05 Marcus Brinkmann <[email protected]> * assuan-defs.h (assuan_context_t): Add member PROCESS_DONE. * assuan.h (assuan_process_next): Add argument DONE to prototype. * assuan-handler.c (assuan_process_next): Likewise, handle it. (std_handler_bye): Set PROCESS_DONE. (assuan_process_done): Handle PROCESS_DONE in the no error case. (assuan_process): Use PROCESS_DONE.
* Extended HELP command.Werner Koch2009-11-048-13/+77
|
* 2009-11-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-11-025-38/+67
| | | | | | | | | | | | | | | | | | | * assuan.h (assuan_handler_t): New type. (assuan_register_bye_notify, assuan_register_reset_notify) (assuan_register_cancel_notify, assuan_register_input_notify) (assuan_register_output_notify, assuan_register_command): Use it. * assuan-handler.c (std_handler_cancel, std_handler_bye): Pass LINE argument to user handler. (std_handler_reset): Likewise, and also abort RESET if error is returned from user handler. (std_handler_input, std_handler_output): Check return value from user handler before assigning FD. * assuan-defs.h (struct cmdtbl_s): Change type of member HANDLER to assuan_handler_t. (struct assuan_context_s): Change type of members RESET_NOTIFY_FNC, CANCEL_NOTIFY_FNC, BYE_NOTIFY_FNC, INPUT_NOTIFY_FNC and OUTPUT_NOTIFY_FNC to assuan_handler_t.
* 2009-10-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-10-302-3/+10
| | | | | * system.c (_assuan_spawn): Check fd_child_list before dumping it.
* 2009-10-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-10-205-87/+96
| | | | | | | * assuan.h (__assuan_usleep): Add declaration. * system.c (__assuan_usleep): Make non-static. * libassuan.vers, libassuan.defs: Sort lexicographically.
* 2009-10-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-10-192-1/+7
| | | | | | * system.c (__assuan_waitpid): Return something. (_assuan_usleep): Don't return value in void function.
* 2009-10-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-10-1633-1246/+1599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * autogen.sh: Remove --with-pth-prefix from configure invocation. * configure.ac (_ASSUAN_IN_LIBASSUAN, PTH_SYSCALL_SOFT): Do not set anymore. (GNUPG_PATH_PTH): Don't invoke. (HAVE_PTH): Remove conditional. (LIBASSUAN_CONFIG_THREAD_MODULES): Removed. doc/ 2009-10-16 Marcus Brinkmann <[email protected]> * assuan.texi: Remove documentation for thread support. (assuan_pipe_connect_ext): Update prototype. src/ 2009-10-16 Marcus Brinkmann <[email protected]> * conversion.c: Do not include <sys/types.h> and <time.h>. * debug.h (TRACE_BEG6, TRACE4): New macros. (TRACE_SYSERR): Pass _assuan_trace_context to _assuan_debug. * context.c (assuan_set_pointer, assuan_get_pointer, assuan_set_flag, assuan_get_flag, assuan_set_io_monitor, assuan_set_error): Add trace messages. * libassuan-config.in, libassuan.m4, Makefile.am: Remove PTH support. * assuan.h (assuan_msghdr_t): New type. (ASSUAN_INVALID_PID): New macro. (ASSUAN_NO_FIXSIGNALS): New flag macro. (ASSUAN_SYSTEM_HOOKS_VERSION): New macro. (struct assuan_system_hooks, assuan_system_hooks_t): New types. (assuan_pipe_connect, assuan_pipe_connect_ext): Don't make ARGV const for name==NULL operation. Make fd_child_list an array of assuan_fd_t. (assuan_sock_init, assuan_sock_deinit, assuan_set_system_hooks, assuan_ctx_set_system_hooks, __assuan_pipe, __assuan_close, __assuan_spawn, __assuan_socketpair): New function prototypes. (_ASSUAN_SYSTEM_PTH_IMPL, ASSUAN_SYSTEM_PTH_DECL, ASSUAN_SYSTEM_PTH): New macros. (_assuan_system_pth): New declaration. * libassuan.vers, libassuan.defs: Add assuan_sock_init, assuan_sock_deinit, __assuan_pipe, __assuan_close, __assuan_spawn, __assuan_socketpair, assuan_set_system_hooks, assuan_ctx_set_system_hooks. * assuan-defs.h (struct assuan_io): Removed, move members to ... (struct assuan_context_s): ... this to ENGINE. New flag no_fixsignals. New member SYSTEM. Remove member IO. (_assuan_pipe, _assuan_read, _assuan_write, _assuan_recvmsg, _assuan_sendmsg, _assuan_spawn, _assuan_socketpair, _assuan_system_hooks, _assuan_system_hooks_copy): New declarations. (_assuan_error_is_eagain, _assuan_waitpid, _assuan_usleep, _assuan_close, _assuan_sock_new, _assuan_sock_connect, _assuan_sock_bind, _assuan_sock_get_nonce, _assuan_sock_check_nonce): Add context argument. (_assuan_io_read, _assuan_io_write, _assuan_simple_sendmsg, _assuan_simple_recvmsg): Removed. * context.c (assuan_ctx_set_system_hooks): New function. * assuan.c (assuan_set_system_hooks): New function. (assuan_new_ext): Initialize CTX->system. (assuan_release): Always output trace message. * assuan-error.c (_assuan_error_is_eagain): Add ctx argument, pass along to _assuan_usleep. * assuan-inquire.c assuan-listen.c, assuan-socket-server.c, assuan-handler.c, assuan-socket-connect.c, assuan-client.c, assuan-pipe-connect.c, assuan-socket.c: Pass CTX argument to functions that need it (_assuan_sock_new, _assuan_sock_check_none, _assuan_close, _assuan_error_is_eagain and many more). * assuan-socket-server.c (assuan_init_socket_server_ext): Update fields in CTX->engine instead of CTX->io. * assuan-socket-connect (assuan_socket_connect_ext): Likewise. * assuan-uds.c (uds_reader, uds_writer, uds_sendfd): Use _assuan_recvmsg and _assuan_sendmsg instead of _assuan_simple_recvmsg and _assuan_simple_sendmsg respectively. (_assuan_init_uds_io): Update fields in CTX->engine instead of CTX->io. * assuan-buffer.c: Use functions in CTX->engine instead of CTX->io. * assuan-pipe-server.c (assuan_init_pipe_server): Update fields in CTX->engine instead of CTX->io. * system.c: Include <sys/types.h>, <time.h>, <fcntl.h>, and <windows.h> resp. <sys/wait.h>. Define MAX_OPEN_FDS. (_assuan_system_hooks_copy, __assuan_usleep, _assuan_usleep, __assuan_pipe, _assuan_pipe, __assuan_close, _assuan_close, __assuan_read, _assuan_read, __assuan_write, _assuan_write, __assuan_recvmsg, _assuan_recvmsg, __assuan_sendmsg, _assuan_sendmsg, __assuan_spawn, _assuan_spawn, __assuan_waitpid, _assuan_waitpid, __assuan_socketpair, _assuan_socketpair): New functions. (_assuan_system_hooks): New singleton. * assuan-io.c (_assuan_waitpid, do_io_read, _assuan_io_read, do_io_write, _assuan_io_write, _assuan_simple_sendmsg, _assuan_simple_recvmsg, _assuan_usleep): Removed. * assuan-pipe-connect (writen, build_w32_commandline, create_inheritable_pipe): Removed (actually moved to system.c). (fix_signals) [_ASSUAN_NO_FIXED_SIGNALS]: Still fix signals. (do_finish): Move waitpid logic to _assuan_waitpid, just call that. (struct at_pipe_fork, struct at_socketpair_fork): New types. (at_pipe_fork_cb, at_socketpair_fork_cb): New callback functions. (pipe_connect_unix, pipe_connect_w32): Replaced by ... (pipe_connect): ... this new function using new system functions. (socketpair_connect): Reimplement to use new system functions. (assuan_pipe_connect, assuan_pipe_connect_ext): Add trace message. * assuan-socket.c (_assuan_close): Removed (moved to system.c). (_assuan_sock_new, _assuan_sock_connect, _assuan_sock_bind, _assuan_sock_get_nonce, _assuan_sock_check_nonce): Add context argument. Use new system interface. (sock_ctx): New singleton. (assuan_sock_init, assuan_sock_deinit): New functions to initialize and deinitialize the singleton.
* Add new ducntion assuan_get_command_name. This makesWerner Koch2009-10-1411-3/+49
| | | | | error reporting in the server much easier.
* Really delete.Marcus Brinkmann2009-10-131-0/+0
|
* 2009-10-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2009-10-089-85/+281
| | | | | | | | | | | | | | | | | | | | * configure.ac: AC_REPLACE_FUNCS for vasprintf. src/ 2009-10-08 Marcus Brinkmann <[email protected]> * assuan.h (assuan_get_assuan_log_stream, assuan_set_assuan_log_stream): Remove prototypes. * libassuan.def: Remove assuan_get_assuan_log_stream, assuan_set_assuan_log_stream. * libassuan.vers: Likewise. * assuan-defs.h (_assuan_w32_strerror): Fix prototype. (w32_strerror): Remove macro. * assuan-pipe-connect.c (build_w32_commandline): Add argument for context. Use it for malloc routines. Use _assuan_w32_strerror instead of w32_strerror. * vasprintf.c: New file.