aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-05-11* assuan-listen.c (assuan_set_hello_line, assuan_accept): AllowWerner Koch4-27/+96
for multi line hello strings. * assuan-buffer.c (_assuan_write_line): New with parts of .. (assuan_write_line): .. factored out.
2004-04-29* assuan-socket-connect.c: Include string.h.Werner Koch4-1/+8
* assuan-logging.c: Ditto.
2004-04-222004-04-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-1/+5
* libassuan.m4: Quote first argument to AC_DEFUN.
2004-04-21* assuan-socket-server.c (accept_connection_bottom): Save the pidWerner Koch7-13/+41
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.
2004-04-19* assuan-socket-server.c, assuan-socket-connect.c: IncludesWerner Koch5-2/+16
sys/types.h. Reported by Michael Nottebrock. * assuan-domain-connect.c: Ditto.
2004-03-14Include <errno.h>. Reported by Bernd Kuhls.Werner Koch2-0/+5
2004-02-20About to release 0.6.4libassuan-0-6-4Werner Koch2-6/+4
2004-02-18(assuan_get_data_fp): Fail with ENOSYS if weWerner Koch2-0/+10
can't implement this.
2004-02-15(memrchr): Fixed implementation. Taken from gpgme.Werner Koch2-6/+14
2004-02-13Removed the unneeded alloca.h.Werner Koch2-1/+4
2004-01-24(assuan_pipe_connect2): New as anWerner Koch3-16/+31
extension of assuan_pipe_connect. Made the latter call this one.
2004-01-14(_assuan_cookie_write_data): Return theWerner Koch3-4/+16
requested size to indicate successful operation. Fixes a spurious bug we previously fixed using fflush().
2003-12-18Last typo fix.Werner Koch1-1/+1
2003-12-18Getting ready for a new releaseWerner Koch2-22/+38
2003-12-16* assuan-buffer.c: Changed formatting of the debug output prefix.Werner Koch6-22/+73
* 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-12-11* funopen.c (_assuan_funopen): Renamed from funopen, to keep theWerner Koch3-12/+40
name space clean and avoid duplicate definitions if another library uses the same replacement. * assuan-defs.h (funopen): Renamed prototype and add a macro.
2003-12-08doc typo fixesWerner Koch2-1/+5
2003-11-12(process_request): Kludge to print better errorWerner Koch4-59/+109
messages for gpg-error enabled programs.
2003-11-112003-11-11 Moritz Schulte <[email protected]>Moritz Schulte2-3/+8
* assuan-socket-connect.c (assuan_socket_connect): Fix computation of socket address length.
2003-08-13(assuan_inquire): Increase length of cmdbuf toWerner Koch2-2/+7
the Assuan limit.
2003-08-06* lgpl.texi: New.libassuan-0-6-0Werner Koch1-1/+1
* gpl.texi: Removed. * assuan.texi: Dropped requirement vor invariant sections, front- and back-cover texts. Include lgpg.texi.
2003-07-03 * mkerrors: Kludge to print libgpg-error values in an easierWerner Koch3-3/+18
readable way.
2003-04-29* libassuan.m4: New. Based on libgrypt.m4.Werner Koch6-53/+142
* Makefile.am (m4data_DATA): New. * assuan.h (AssuanCommand): Removed. * assuan-handler.c: Remove the cmd_id element, (assuan_register_command): Likewise. Note that semantics changed. (_assuan_register_std_commands): Adjusted.
2003-02-222003-02-22 Neal H. Walfield <[email protected]>Neal Walfield2-1/+5
* Makefile.am (bin_SCRIPTS): Renamed from bin_PROGRAMS.
2003-02-18/Neal Walfield6-0/+150
2003-02-18 Neal H. Walfield <[email protected]> * configure.ac: Fix typo. (AC_CONFIG_FILES): Remove common/Makefile.am. * common: Remove directory. src/ 2003-02-18 Neal H. Walfield <[email protected]> * Makefile.am (libassuan_a_LIBADD): New variable. * funopen.c: Move from ../common. * isascii.c: Likewise. * memrchr.c: Likewise. * putc_unlocked.c: Likewise.
2003-02-18/Neal Walfield2-27/+11
2003-02-18 Neal H. Walfield <[email protected]> * common: New directory. * Makefile.am (SUBDIRS): Add common. * configure.ac: Check for funopen. If not present, check for fopencookie and implement it in terms of that. Otherwise, fail. (AC_CONFIG_FILES): Add common/Makefile. src/ 2003-02-18 Neal H. Walfield <[email protected]> * assuan-handler.c (_IO_cookie_io_functions_t): Remove. (cookie_io_functions_t): Remove. (fopencookie): Remove prototype. (assuan_get_data_fp): Use funopen, not fopencookie. common/ 2003-02-18 Neal H. Walfield <[email protected]> * Makefile.am: New file. * funopen.c: New file. * isascii.c: Imported from newpg. * memrchr.c: Likewise. * putc_unlocked.c: Likewise.
2003-02-18/Neal Walfield3-0/+120
2003-02-18 Neal H. Walfield <[email protected]> * configure.ac (AC_CONFIG_FILES): Add src/libassuan-config. (LIBASSUAN_CONFIG_LIBS, LIBASSUAN_CONFIG_CFLAGS): New variables. AC_SUBST them. src/ 2003-02-18 Neal H. Walfield <[email protected]> * libassuan-config.in: New file. * Makefile.am (bin_PROGRAMS): New variable.
2003-02-182003-02-17 Neal H. Walfield <[email protected]>Neal Walfield2-0/+5
* .cvsignore: New file.
2003-02-182003-02-17 Neal H. Walfield <[email protected]>Neal Walfield12-208/+232
* 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-252002-11-24 Neal H. Walfield <[email protected]>Neal Walfield3-4/+18
* assuan.h (assuan_command_parse_fd): New prototype. * assuan-handler.c (assuan_command_parse_fd): Rename from parse_cmd_input_output. Export. (std_handler_input): Update to use assuan_command_parse_fd. (std_handler_output): Likewise.
2002-11-24Fix tyop.Neal Walfield1-1/+1
2002-11-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield7-21/+194
* 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 Walfield3-19/+23
* 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 Walfield6-5/+467
* 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
2002-11-232002-11-23 Neal H. Walfield <[email protected]>Neal Walfield7-30/+101
* 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-232002-11-23 Neal H. Walfield <[email protected]>Neal Walfield2-54/+63
* assuan-buffer.c (readline): Use memrchr. (_assuan_read_line): Rewritten to use the string functions.
2002-11-212002-11-20 Neal H. Walfield <[email protected]>Neal Walfield2-2/+10
* 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-212002-11-20 Neal H. Walfield <[email protected]>Neal Walfield8-86/+104
* 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-11-10Be more generous in typing equal signs and better watch out forNEWPG-0-9-4NEWPG-0-9-3Werner Koch1-1/+1
compiler suggestions. Ah well, actually test before commiting.
2002-11-10* assuan-pipe-connect.c (assuan_pipe_connect): Changed the orderWerner Koch2-35/+40
of the dups to handle cases where we have already used fd 2 for other things.
2002-10-312002-10-31 Neal H. Walfield <[email protected]>Neal Walfield2-28/+74
* assuan-util.c: Include <ctype.h>. (_assuan_log_print_buffer): Elide the magic numbers preferring the standard isfoo functions. Use putc_unlocked where possible. (_assuan_log_sanitized_string): Rewrite to use putc_unlocked and the isfoo functions.
2002-10-292002-09-05 Neal H. Walfield <[email protected]>Neal Walfield8-43/+97
* 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.
2002-08-16* assuan.h: Renamed Bad_Certificate_Path to Bad_Certificate_Chain.V0-9-2V0-9-1V0-9-0NEWPG-0-9-2NEWPG-0-9-1NEWPG-0-9-0MERGE-TO-GNUPG-STARTWerner Koch2-1/+5
2002-07-30Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch16-195/+224
2002-06-27* gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.V0-3-9NEWPG-0-3-9Werner Koch2-12/+37
* call-agent.c (start_agent): Create and pass the list of FD to keep in the child to assuan. * call-dirmngr.c (start_dirmngr): Ditto. * scdaemon.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * assuan-pipe-connect.c (assuan_pipe_connect): No special handling for the log_fd and stderr. Connect stderr to /dev/null if it should not be retained.
2002-06-26* assuan-buffer.c (assuan_write_line): Make sure we neverWerner Koch2-5/+18
accidently print an extra LF.
2002-05-23* assuan-util.c (assuan_set_io_func): New.V0-3-8V0-3-7NEWPG-0-3-8NEWPG-0-3-7Werner Koch7-35/+97
* 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.
2002-04-09* 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 Koch2-8/+28
2002-03-06* assuan-client.c (_assuan_read_from_server): Detect END.V0-3-4V0-3-3V0-3-2NEWPG-0-3-4NEWPG-0-3-3NEWPG-0-3-2Werner Koch2-0/+24
(assuan_transact): Pass it to the data callback.
2002-03-04Minor fixes; about to release 0.3.1V0-3-1NEWPG-0-3-1Werner Koch1-0/+3