* assuan-socket-connect.c: Include sys/types.h
[gpgme.git] / assuan / ChangeLog
index 0cf53b8..5354743 100644 (file)
-2002-05-03  Werner Koch  <wk@gnupg.org>
+2004-04-19  Werner Koch  <wk@gnupg.org>
 
-       * assuan-pipe-connect.c (assuan_pipe_connect2): New to extend
-       assuan_pipe_connect with some flags.  Implemented a bitbucket for
-       stderr. 
+       * assuan-socket-connect.c: Include sys/types.h
+       * assuan-socket-server.c: Ditto
+       * assuan-domain-connect.c: Ditto.
 
-2002-04-26  Werner Koch  <wk@gnupg.org>
+2004-02-18  Werner Koch  <wk@gnupg.org>
 
-       * Makefile.am: Create libtool libraries
+       * assuan-handler.c (assuan_get_data_fp): Fail with ENOSYS if we
+       can't implement this.
+
+2004-02-13  Werner Koch  <wk@gnupg.org>
+
+       * assuan-domain-connect.c: Removed the unneeded alloca.h
+
+2003-08-13  Werner Koch  <wk@gnupg.org>
+
+       * assuan-inquire.c (assuan_inquire): Increase length of cmdbuf to
+       the Assuan limit.
+
+2003-06-24  Werner Koch  <wk@gnupg.org>
+
+       * mkerrors: Kludge to print libgpg-error values in an easier
+       readable way.
+
+2003-04-29  Werner Koch  <wk@gnupg.org>
+
+       * libassuan.m4: New. Based on libgrypt.m4.
+       * 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-22  Neal H. Walfield  <neal@g10code.de>
+
+       * Makefile.am (bin_SCRIPTS): Renamed from bin_PROGRAMS.
+
+2003-02-18  Neal H. Walfield  <neal@g10code.de>
+
+       * 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 H. Walfield  <neal@g10code.de>
+
+       * 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.
+
+2003-02-18  Neal H. Walfield  <neal@g10code.de>
+
+       * libassuan-config.in: New file.
+       * Makefile.am (bin_PROGRAMS): New variable.
+
+2003-02-17  Neal H. Walfield  <neal@g10code.de>
+
+       * .cvsignore: New file.
+
+2003-02-17  Neal H. Walfield  <neal@g10code.de>
+
+       * 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  <neal@g10code.de>
+
+       * 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-24  Neal H. Walfield  <neal@g10code.de>
+
+       * 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-24  Neal H. Walfield  <neal@g10code.de>
+
+       * 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-24  Neal H. Walfield  <neal@g10code.de>
+
+       * 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-23  Neal H. Walfield  <neal@g10code.de>
+
+       * 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-23  Neal H. Walfield  <neal@g10code.de>
+
+       * assuan-buffer.c (readline): Use memrchr.
+       (_assuan_read_line): Rewritten to use the string functions.
+
+2002-11-20  Neal H. Walfield  <neal@g10code.de>
+
+       * 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  <neal@g10code.de>
+
+       * 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-10  Werner Koch  <wk@gnupg.org>
+
+       * assuan-pipe-connect.c (assuan_pipe_connect): Changed the order
+       of the dups to handle cases where we have already used fd 2 for
+       other things.
+
+2002-10-31  Neal H. Walfield  <neal@g10code.de>
+
+       * 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-09-05  Neal H. Walfield  <neal@g10code.de>
+
+       * 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-08-16  Werner Koch  <wk@gnupg.org>
+
+       * assuan.h: Renamed Bad_Certificate_Path to Bad_Certificate_Chain.
+
+2002-07-30  Werner Koch  <wk@gnupg.org>
+
+       Changed the license from GPL to LGPL.
+
+2002-07-23  Werner Koch  <wk@gnupg.org>
+
+       * assuan-handler.c (_IO_cookie_io_functions_t): Define it here if
+       it does not exists.
+
+2002-06-27  Werner Koch  <wk@gnupg.org>
+
+       * 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  Werner Koch  <wk@gnupg.org>
+
+       * assuan-buffer.c (assuan_write_line): Make sure we never
+       accidently print an extra LF.
+
+2002-05-23  Werner Koch  <wk@gnupg.org>
+
+       * assuan-util.c (assuan_set_io_func): New.
+       * 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-05-22  Werner Koch  <wk@gnupg.org>
+
+       * assuan-socket-server.c (assuan_init_connected_socket_server): New.
+       (accept_connection): Factored most code out to..
+       (accept_connection_bottom): .. new function.
 
 2002-04-04  Werner Koch  <wk@gnupg.org>
 
        * assuan-defs.h: Add space in the context for this.
 
        
-     ***********************************************************
-     * Please note that Assuan is maintained as part of GnuPG. *
-     * You may find it source-copied in other packages.        *
-     ***********************************************************       
-       
  Copyright 2001, 2002 Free Software Foundation, Inc.
 
  This file is free software; as a special exception the author gives