aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed the unneeded alloca.h.Werner Koch2004-02-132-1/+4
|
* (assuan_pipe_connect2): New as anWerner Koch2004-01-243-16/+31
| | | | | extension of assuan_pipe_connect. Made the latter call this one.
* (_assuan_cookie_write_data): Return theWerner Koch2004-01-143-4/+16
| | | | | | requested size to indicate successful operation. Fixes a spurious bug we previously fixed using fflush().
* Last typo fix.Werner Koch2003-12-181-1/+1
|
* Getting ready for a new releaseWerner Koch2003-12-182-22/+38
|
* * assuan-buffer.c: Changed formatting of the debug output prefix.Werner Koch2003-12-166-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.
* * funopen.c (_assuan_funopen): Renamed from funopen, to keep theWerner Koch2003-12-113-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.
* doc typo fixesWerner Koch2003-12-082-1/+5
|
* (process_request): Kludge to print better errorWerner Koch2003-11-124-59/+109
| | | | | messages for gpg-error enabled programs.
* 2003-11-11 Moritz Schulte <[email protected]>Moritz Schulte2003-11-112-3/+8
| | | | | | * assuan-socket-connect.c (assuan_socket_connect): Fix computation of socket address length.
* (assuan_inquire): Increase length of cmdbuf toWerner Koch2003-08-132-2/+7
| | | | | the Assuan limit.
* * lgpl.texi: New.libassuan-0-6-0Werner Koch2003-08-061-1/+1
| | | | | | | * gpl.texi: Removed. * assuan.texi: Dropped requirement vor invariant sections, front- and back-cover texts. Include lgpg.texi.
* * mkerrors: Kludge to print libgpg-error values in an easierWerner Koch2003-07-033-3/+18
| | | | | readable way.
* * libassuan.m4: New. Based on libgrypt.m4.Werner Koch2003-04-296-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-22 Neal H. Walfield <[email protected]>Neal Walfield2003-02-222-1/+5
| | | | | * Makefile.am (bin_SCRIPTS): Renamed from bin_PROGRAMS.
* /Neal Walfield2003-02-186-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.
* /Neal Walfield2003-02-182-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.
* /Neal Walfield2003-02-183-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-17 Neal H. Walfield <[email protected]>Neal Walfield2003-02-182-0/+5
| | | | | * .cvsignore: New file.
* 2003-02-17 Neal H. Walfield <[email protected]>Neal Walfield2003-02-1812-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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-253-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.
* Fix tyop.Neal Walfield2002-11-241-1/+1
|
* 2002-11-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-247-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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-243-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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-246-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-23 Neal H. Walfield <[email protected]>Neal Walfield2002-11-237-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-23 Neal H. Walfield <[email protected]>Neal Walfield2002-11-232-54/+63
| | | | | | * 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-212-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-20 Neal H. Walfield <[email protected]>Neal Walfield2002-11-218-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.
* Be more generous in typing equal signs and better watch out forNEWPG-0-9-4NEWPG-0-9-3Werner Koch2002-11-101-1/+1
| | | | | compiler suggestions. Ah well, actually test before commiting.
* * assuan-pipe-connect.c (assuan_pipe_connect): Changed the orderWerner Koch2002-11-102-35/+40
| | | | | | of the dups to handle cases where we have already used fd 2 for other things.
* 2002-10-31 Neal H. Walfield <[email protected]>Neal Walfield2002-10-312-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-09-05 Neal H. Walfield <[email protected]>Neal Walfield2002-10-298-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.
* * 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 Koch2002-08-162-1/+5
|
* Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch2002-07-3016-195/+224
|
* * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.V0-3-9NEWPG-0-3-9Werner Koch2002-06-272-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.
* * assuan-buffer.c (assuan_write_line): Make sure we neverWerner Koch2002-06-262-5/+18
| | | | | 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-237-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.
* * 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-092-8/+28
|
* * 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 Koch2002-03-062-0/+24
| | | | | (assuan_transact): Pass it to the data callback.
* Minor fixes; about to release 0.3.1V0-3-1NEWPG-0-3-1Werner Koch2002-03-041-0/+3
|
* * assuan-client.c (assuan_transact): Add 2 more arguments toWerner Koch2002-02-284-4/+42
| | | | | | | support status lines. Passing NULL yields the old behaviour. * assuan-handler.c (process_request): Flush data lines send without using the data fp.
* A bunch of new features. Allow empty responses on an inquiry.Werner Koch2002-02-186-18/+62
|
* * assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.Werner Koch2002-02-123-1/+23
| | | | | * assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.
* 2002-02-01 Marcus Brinkmann <[email protected]>V0-3-0NEWPG-0-3-0Marcus Brinkmann2002-02-012-0/+5
| | | | | * Makefile.am (MOSTLYCLEANFILES): New variable.
* * assuan-socket-connect.c (LOGERRORX): and removed typo.Werner Koch2002-01-232-1/+5
|
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-222-1/+5
| | | | | * assuan-socket-connect.c (LOGERRORX): Reverse arguments to fputs.
* * assuan-connect.c: Move all except assuan_get_pid to...Werner Koch2002-01-219-222/+546
| | | | | | | | | | | | | | | | | * 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.
* * assuan.h: Added Invalid Option error code.Werner Koch2002-01-204-2/+105
| | | | | | | | | * assuan-handler.c (std_handler_option): New. (std_cmd_tbl): Add OPTION as standard command. (assuan_register_option_handler): New. (dispatch_command): Use case insensitive matching as a fallback. (my_strcasecmp): New.
* * assuan-buffer.c (_assuan_read_line): Add output logging.Werner Koch2002-01-1911-19/+311
| | | | | | | | | | | | | | | | | | | (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.