aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-buffer.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-12/+12
|
* Switched to LGPLv3.libassuan-1.0.2Werner Koch2007-07-051-4/+2
|
* New functions assuan_set_io_monitor and assuan_register_post_cmd_notifyWerner Koch2006-11-141-12/+45
|
* portability fixeslibassuan-0.9.3Werner Koch2006-10-101-0/+9
|
* 2006-09-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-09-191-3/+3
| | | | | | | | | | * mkerrors (_assuan_error): Change return type to assuan_error_t. * assuan-buffer.c (_assuan_read_line): Change return type to assuan_error_t. Map returned value of -1. (_assuan_write_line): Change type of RC to assuan_error_t. * assuan-defs.h (_assuan_read_line, _assuan_error): Likewise for prototypes.
* Preparing a new releaselibassuan-0.9.0Werner Koch2006-09-141-11/+11
|
* More tweaks for descriptor passing.Werner Koch2006-09-131-1/+5
| | | | | gpg-connect-agent may now be used as a test program.
* Changes to support gpg-error style error codes.Werner Koch2006-09-061-33/+41
|
* Fixed and clarified copyright noticesWerner Koch2005-10-241-1/+2
|
* (struct assuan_io): Renamed elements READ andWerner Koch2005-03-221-2/+2
| | | | | | WRITE to READFNC and WRITEFNC to avoid problems with read defined as macros. Changed callers. Noted by Ville Skytt��.
* * 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.
* 2004-11-23 Timo Schulz <[email protected]>Timo Schulz2004-11-241-9/+12
| | | | | | | | | | | | | | | | | | * 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-listen.c (assuan_set_hello_line, assuan_accept): AllowWerner Koch2004-05-111-21/+57
| | | | | | | | for multi line hello strings. * assuan-buffer.c (_assuan_write_line): New with parts of .. (assuan_write_line): .. factored out.
* * assuan-socket-connect.c: Include string.h.Werner Koch2004-04-291-1/+1
| | | | | * assuan-logging.c: Ditto.
* (_assuan_cookie_write_data): Return theWerner Koch2004-01-141-3/+4
| | | | | | requested size to indicate successful operation. Fixes a spurious bug we previously fixed using fflush().
* * assuan-buffer.c: Changed formatting of the debug output prefix.Werner Koch2003-12-161-14/+21
| | | | | | | | * assuan-util.c (assuan_set_log_stream): Set global log stream if it has not been done yet. * assuan-logging.c (_assuan_set_default_log_stream): New. (assuan_set_assuan_log_prefix): New.
* 2003-02-17 Neal H. Walfield <[email protected]>Neal Walfield2003-02-181-38/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-241-0/+20
| | | | | | | | | | | | | | | | | | | | | | | * 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-23 Neal H. Walfield <[email protected]>Neal Walfield2002-11-231-54/+58
| | | | | | * assuan-buffer.c (readline): Use memrchr. (_assuan_read_line): Rewritten to use the string functions.
* 2002-11-20 Neal H. Walfield <[email protected]>Neal Walfield2002-11-211-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-13/+13
|
* * assuan-buffer.c (assuan_write_line): Make sure we neverWerner Koch2002-06-261-5/+13
| | | | | accidently print an extra LF.
* * assuan-util.c (assuan_set_io_func): New.V0-3-8V0-3-7NEWPG-0-3-8NEWPG-0-3-7Werner Koch2002-05-231-13/+7
| | | | | | | | | * assuan-buffer.c (writen, readline): Use the new functions instead of pth. * assuan-socket-server.c (accept_connection): Don't use the pth_accept - using the assuan included accept code would be a bad idea within Pth so we don't need a replacement function.
* * assuan-buffer.c (my_log_prefix): New. Use it for all i/o debug output.V0-3-6V0-3-5NEWPG-0-3-6NEWPG-0-3-5Werner Koch2002-04-091-8/+23
|
* * assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.Werner Koch2002-02-121-1/+11
| | | | | * assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.
* * assuan-buffer.c (_assuan_read_line): Add output logging.Werner Koch2002-01-191-1/+55
| | | | | | | | | | | | | | | | | | | (assuan_write_line): Ditto. (_assuan_cookie_write_data): Ditto. (_assuan_cookie_write_flush): Ditto. * assuan-util.c (_assuan_log_print_buffer): New. (assuan_set_log_stream): New. (assuan_begin_confidential): New. (assuan_end_confidential): New. * assuan-defs.h: Add a few handler variables. * assuan-pipe-server.c (assuan_deinit_pipe_server): Removed. (deinit_pipe_server): New. (assuan_deinit_server): New. Changed all callers to use this. * assuan-listen.c (assuan_accept): Use the accept handler. * assuan-handler.c (process_request): Use the close Handler. * assuan-socket-server.c: New.
* 2001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-141-12/+16
| | | | | | | * assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use it to save the number of bytes left over after the complete line. Rediddle the code a bit to make it more clear what happens.
* 2001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-131-1/+5
| | | | | | | | | | | * assuan-buffer.c (assuan_read_line): Fix order of execution to get correct return values. 2001-12-13 Werner Koch <[email protected]> * assuan-handler.c (assuan_get_active_fds): Fixed silly bug, pretty obvious that nobody ever tested this function.
* * assuan-connect.c (assuan_pipe_connect): Implemented the initalWerner Koch2001-12-121-4/+44
| | | | | | | | | | | | | | | handshake. * assuan-client.c (read_from_server): Renamed to (_assuan_read_from_server): this and made external. * assuan-listen.c (assuan_set_hello_line): New. (assuan_accept): Use a custom hello line is available. * assuan-buffer.c (assuan_read_line): New. (assuan_pending_line): New. (_assuan_write_line): Renamed to .. (assuan_write_line): this, made public and changed all callers.
* assuan-connect.c (assuan_pipe_connect): Add more error reporting.Werner Koch2001-12-051-0/+45
| | | | | | | assuan-client.c: New. assuan-inquire.c: New. assuan-handler.c (process_request): Check for nested invocations.
* * assuan-buffer.c (_assuan_read_line): Deal with reads of moreWerner Koch2001-11-241-7/+29
| | | | | | than a line. * assuan-defs.h: Add space in the context for this.
* Added code for data lines. For ease of implementation we need glibcWerner Koch2001-11-191-0/+96
| | | | | (custom streams).
* Assuan server mode is now basically usableWerner Koch2001-11-071-3/+110
|
* First chunk of code for the Assuan libraryWerner Koch2001-11-061-0/+44