aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-socket-connect.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Preparing 1.0.3Werner Koch2007-08-241-1/+1
|
* Introduced new type for better support of W32 HADNLES vs. file descriptors.Werner Koch2007-07-121-6/+6
|
* Switched to LGPLv3.libassuan-1.0.2Werner Koch2007-07-051-4/+2
|
* More tweaks for descriptor passing.Werner Koch2006-09-131-10/+28
| | | | | gpg-connect-agent may now be used as a test program.
* Changes to support gpg-error style error codes.Werner Koch2006-09-061-6/+6
|
* Fixed and clarified copyright noticesWerner Koch2005-10-241-1/+2
|
* Switched to automake 1.9.libassuan-0-6-9Werner Koch2004-12-221-13/+1
|
* (assuan_socket_connect): Allow for aWerner Koch2004-12-201-2/+8
| | | | | drive letter in the path.
* * autogen.sh: Add Option --build-w32.Werner Koch2004-12-181-2/+16
| | | | | | | | | | | * assuan-logging.c (_assuan_w32_strerror): New. * assuan-defs.h (w32_strerror): new. * assuan-pipe-connect.c (assuan_pipe_connect2, fix_signals): Factored signal code out to new function. (build_w32_commandline, create_inheritable_pipe): New. Taken from gnupg 1.9. (assuan_pipe_connect2) [W32]: Implemented for W32.
* * configure.ac: Define HAVE_W32_SYSTEM and HAVE_DOSISH_SYSTEM.Werner Koch2004-12-071-1/+1
| | | | | | | | | | 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.
* * assuan-logging.c (_assuan_log_printf): New.Werner Koch2004-11-241-13/+5
| | | | | | | | | | | * 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-23 Timo Schulz <[email protected]>Timo Schulz2004-11-241-10/+18
| | | | | | | | | | | | | | | | | | * 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.
* * assuan-socket-connect.c (LOG): Fixed macro to print not only theWerner Koch2004-11-161-4/+3
| | | | | | prefix. * assuan-domain-connect.c, assuan-socket-connect.c (LOG): Ditto.
* * assuan-socket-connect.c: Define SUN_LEN, AF_LOCAL and PF_LOCALWerner Koch2004-10-021-1/+21
| | | | | | if they are not available. * assuan-domain-connect.c: Define PF_LOCAL and AF_LOCAL if needed.
* * assuan-socket-connect.c: Include string.h.Werner Koch2004-04-291-0/+1
| | | | | * assuan-logging.c: Ditto.
* * assuan-socket-server.c (accept_connection_bottom): Save the pidWerner Koch2004-04-211-1/+0
| | | | | | | | | | | | | of the peer if it is available. * assuan-socket-connect.c (assuan_socket_connect): Do not save the dummy SERVED_PID arg. * assuan-pipe-connect.c (do_finish): Don't wait if the pid is 0. (assuan_pipe_connect2): Store the parents pid in the environment of the child. * assuan-pipe-server.c (assuan_init_pipe_server): Initialize the peer's pid from the environment. * assuan-connect.c (assuan_get_pid): Do not return 0 as a PID.
* * assuan-socket-server.c, assuan-socket-connect.c: IncludesWerner Koch2004-04-191-0/+1
| | | | | | sys/types.h. Reported by Michael Nottebrock. * assuan-domain-connect.c: Ditto.
* 2003-11-11 Moritz Schulte <[email protected]>Moritz Schulte2003-11-111-3/+3
| | | | | | * assuan-socket-connect.c (assuan_socket_connect): Fix computation of socket address length.
* 2003-02-17 Neal H. Walfield <[email protected]>Neal Walfield2003-02-181-54/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-23 Neal H. Walfield <[email protected]>Neal Walfield2002-11-231-4/+5
| | | | | | | | | | | | | | | | | | | | | * Makefile.am (libassuan_a_SOURCES): Add assuan-io.c. * assuan-io.c: Restore. (_assuan_simple_read): Rename from _assuan_read. (_assuan_simple_write): Rename from _assuan_write. * assuan-defs.h (_assuan_simple_read): New prototype. (_assuan_simple_write): Likewise. * assuan-pipe-server.c (pipe_reader): Remove. (pipe_writer): Remove. (_assuan_new_context): Initialize IO is with _assuan_simple_read and _assuan_simple_write. * assuan-socket-connect.c (socket_reader): Remove. (socket_writer): Remove. (assuan_socket_connect): Initialize IO is with _assuan_simple_read and _assuan_simple_write. * assuan-socket-server.c (io): New local variable. (assuan_init_socket_server): Initialize CTX->io. (assuan_init_connected_socket_server): Likewise.
* 2002-11-20 Neal H. Walfield <[email protected]>Neal Walfield2002-11-211-2/+2
| | | | | | | | | * assuan-socket-connect.c (assuan_socket_connect): Pass PF_LOCAL to socket(), not AF_UNIX: it expects a PF_* macro and the former is more portable. (assuan_socket_connect): Use AF_LOCAL, not AF_UNIX which is more POSIXy.
* 2002-11-20 Neal H. Walfield <[email protected]>Neal Walfield2002-11-211-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * assuan-defs.h (struct assuan_io): New structure. (struct assuan_context_s): New field, io. (_assuan_read): Depreciated. (_assuan_write): Likewise. * assuan-pipe-server.c: Include <unistd.h>. (pipe_reader): New function. (pipe_writer): Likewise. (_assuan_new_context.IO): New local static. Set to pipe_reader and pipe_writer. Use it to initialize new context. * assuan-socket-connect.c (socket_reader): New function. (socket_writer): New function. (assuan_socket_connect.IO): New local static. Set to socket_reader and socket_writer. Use it to initialize new context. * assuan-buffer.c (writen): Take an ASSUAN_CONTEXT rather than a file descriptor. Do not use _assuan_write but the write method in the supplied context. (readline): Likewise for _assuan_read. (assuan_write_line): When calling writen, pass CTX; not the file descriptor directly. (_assuan_cookie_write_data): Likewise. (_assuan_cookie_write_flush): Likewise. (_assuan_read_line): Likewise for readline. * Makefile.am (libassuan_a_SOURCES): Remove assuan-io.c. * assuan-io.c: Removed.
* 2002-09-05 Neal H. Walfield <[email protected]>Neal Walfield2002-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * assuan-defs.h (_assuan_read_wrapper): Depreciated. * assuan-util.c (_assuan_read_wrapper): Removed. * assuan-defs.h (_assuan_write_wrapper): Depreciated. * assuan-util.c (_assuan_write_wrapper): Removed. * assuan.h (assuan_set_io_fun): Depreciated. * assuan-util.c (assuan_set_io_fun): Removed. * assuan-defs.h (_assuan_read): New function. (_assuan_write): Likewise. * assuan-io.c: New file. * assuan-buffer.c (writen): Use _assuan_write rather than doing the work here. (readline): Likewise for _assuan_read. * Makefile.am (libassuan_a_SOURCES): Add assuan-io.c. 2002-09-05 Neal H. Walfield <[email protected]> * gpg-agent.c (main) [USE_GNU_PTH]: No need to call assuan_set_io_func as assuan is smart.
* Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch2002-07-301-12/+12
|
* * assuan-socket-connect.c (LOGERRORX): and removed typo.Werner Koch2002-01-231-1/+1
|
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-221-1/+1
| | | | | * assuan-socket-connect.c (LOGERRORX): Reverse arguments to fputs.
* * assuan-connect.c: Move all except assuan_get_pid to...Werner Koch2002-01-211-0/+150
* assuan-pipe-connect.c: this. (assuan_pipe_disconnect): Removed. (do_finish, do_deinit): New (assuan_pipe_connect): and set them into the context. * assuan-socket-connect.c: New. * assuan-util.c (_assuan_log_sanitized_string): New. * assuan-pipe-server.c (assuan_init_pipe_server): Factored most code out to ... (_assuan_new_context): new func. (_assuan_release_context): New * assuan-connect.c (assuan_pipe_connect): Use the new functions.