aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-domain-connect.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2006-09-12Integrated descriptor passing.Werner Koch1-534/+0
2006-09-06Changes to support gpg-error style error codes.Werner Koch1-32/+38
2005-10-24Fixed and clarified copyright noticesWerner Koch1-1/+2
2005-10-072005-10-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-3/+26
* configure.ac: Invoke AC_CANONICAL_HOST. Define _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED and __EXTENSIONS__ on Solaris. Add stpcy as replacement function. Add setenv as replacement function (and check for unistd.h). src/ 2005-10-06 Marcus Brinkmann <[email protected]> * assuan-defs.h (memrchr) [!HAVE_MEMRCHR]: New prototype. (stpcpy) [!HAVE_STPCPY]: Likewise. * stpcpy.c: New LGPL'ed file from the GNU C Library. * setenv.c: New file. * assuan-domain-connect.c (read_int): New function. (write_int): New function. (domain_reader): Use read_int. (domain_sendfd): Use write_int.
2004-12-07* configure.ac: Define HAVE_W32_SYSTEM and HAVE_DOSISH_SYSTEM.Werner Koch1-5/+5
Add -lwsock2 to the config lib flags for W32. * assuan-logging.c, assuan-io.c: Include config.h * assuan-pipe-connect.c (assuan_pipe_connect2) [_WIN32]: Return error Not Imlemented.
2004-11-24* assuan-logging.c (_assuan_log_printf): New.Werner Koch1-25/+17
* assuan-domain-connect.c (LOG): Removed and replaced all callers by _assuan_log_printf. This is needed for C89 and gcc 2.95 which both don't have C99 style variable arg macros. * assuan-pipe-connect.c (LOG): Ditto. * assuan-socket-connect.c (LOG): Ditto. * assuan-socket.c[!_WIN32]: Fixed includes.
2004-11-242004-11-23 Timo Schulz <[email protected]>Timo Schulz1-25/+50
* assuan-socket.c (_assuan_sock_connect): Get local port from the sun_path[] file. (_assuan_sock_bind): Write local port to the sun_path[] file. * assuan-socket-connect.c (assuan_socket_connect): Use DIRSEP_C for a better portability. (assuan-defs.h): Define DIRSEP_C. 2004-11-22 Timo Schulz <[email protected]> * assuan-io.c (_assuan_simple_read, _assuan_simple_write): W32 support. * assuan-socket.c (_assuan_close): New. (_assuan_sock_new): New. (_assuan_sock_bind): New.
2004-11-16* assuan-socket-connect.c (LOG): Fixed macro to print not only theWerner Koch1-3/+3
prefix. * assuan-domain-connect.c, assuan-socket-connect.c (LOG): Ditto.
2004-10-02* assuan-socket-connect.c: Define SUN_LEN, AF_LOCAL and PF_LOCALWerner Koch1-1/+12
if they are not available. * assuan-domain-connect.c: Define PF_LOCAL and AF_LOCAL if needed.
2004-06-232004-06-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+3
* configure.ac: Check for <sys/uio.h>. src/ 2004-06-23 Marcus Brinkmann <[email protected]> * assuan-domain-connect.c [HAVE_SYS_UIO_H]: Include <sys/uio.h>.
2004-04-19* assuan-socket-server.c, assuan-socket-connect.c: IncludesWerner Koch1-0/+1
sys/types.h. Reported by Michael Nottebrock. * assuan-domain-connect.c: Ditto.
2004-02-13Removed the unneeded alloca.h.Werner Koch1-1/+0
2003-02-182003-02-17 Neal H. Walfield <[email protected]>Neal Walfield1-45/+36
* Makefile.am (lib_LIBRARIES): Use this instead of . . . (noinst_LIBRARIES): . . . this. (include_HEADERS): New variable. (libassuan_a_SOURCES): Remove assuan.h, add assuan-logging.c. * assuan.h (assuan_set_assuan_log_stream): New prototype. (assuan_get_assuan_log_stream): Likewise. (assuan_get_assuan_log_prefix): Likewise. * assuan-logging.c: New file. * assuan-buffer.c [HAVE_JNLIB_LOGGIN]: Do not include "../jnlib/logging.h". (my_log_prefix): Remove function. (_assuan_read_line): Use assuan_get_assuan_log_prefix in lieu of my_log_prefix. (assuan_write_line): Likewise. (_assuan_cookie_write_data): Likewise. (_assuan_cookie_write_flush): Likewise. * assuan-domain-connect.c (LOGERROR, LOGERROR1, LOGERROR2, LOGERRORX): Remove. (LOG): New macro. (domain_reader): Use it. (domain_writer): Likewise. (domain_sendfd): Likewise. (domain_receivefd): Likewise. (_assuan_domain_init): Likewise. (assuan_domain_connect): Likewise. * assuan-pipe-connect.c [HAVE_JNLIB_LOGGIN]: Do not include "../jnlib/logging.h". (LOGERROR, LOGERROR1, LOGERROR2, LOGERRORX): Remove. (LOG): New macro. (assuan_pipe_connect): Use it. * assuan-socket-connect.c [HAVE_JNLIB_LOGGIN]: Do not include "../jnlib/logging.h". (LOGERROR, LOGERROR1, LOGERROR2, LOGERRORX): Remove. (LOG): New macro. (assuan_socket_connect): Use it. (socket_reader): Remove dead code. (socket_writer): Likewise. * assuan-util.c [HAVE_JNLIB_LOGGIN]: Do not include "../jnlib/logging.h". (_assuan_log_sanitized_string): Use assuan_get_assuan_log_stream, not jnlib.
2002-11-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield1-5/+116
* assuan.h (assuan_sendfd): New prototype. (assuan_receivefd): New prototype. * assuan-buffer.c (assuan_sendfd): New function. (assuan_receivefd): New function. * assuan-handler.c (parse_cmd_input_output): Recognize incoming file descriptors and act appropriately. * assuan-defs.h (struct assuan_io): Add fields sendfd and receivefd. (struct assuan_context_s): Add fields pendingfds and pendingfdscount. * assuan-pipe-server.c (_assuan_new_context): Update IO to reflect new features. * assuan-domain-connect.c (do_deinit): Cleanup any unreceived file descriptors. (domain_reader): Receive file descriptors. (domain_sendfd): New function. (domain_receivefd): New function. (_assuan_domain_init): Update initialization code to reflect new features.
2002-11-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield1-11/+11
* assuan-domain-connect.c (do_finish): Remove. (_assuan_domain_init): Use default handlers where possible. Add an assert and update comments. * assuan-domain-server.c (accept_connection): Remove. (assuan_init_domain_server): Use default handlers where possible. Put the server in pipe mode: it can only be used by a single client.
2002-11-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield1-0/+371
* assuan.h: Add prototype for assuan_domain_connect and assuan_init_domain_server. * assuan-defs.h: Include <unistd.h>. Add prototype for _assuan_domain_init. * assuan-domain-connect.c: New file. * assuan-domain-server.c: New file. * Makefile.am (libassuan_a_SOURCES): Add assuan-domain-connect.c and assuan-domain-server.c