aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-08-24Preparing 1.0.3Werner Koch1-4/+4
2007-08-09doc/Marcus Brinkmann1-1/+8
2007-08-09 Marcus Brinkmann <[email protected]> * assuan.texi (External I/O Loop): New chapter. src/ 2007-08-09 Marcus Brinkmann <[email protected]> * assuan.h (assuan_process_done, assuan_inquire_ext): New prototypes. * assuan-defs.h (struct assuan_context_s): New members in_process_next, in_command, inquire_cb, inquire_cb_data, inquire_r_buffer, inquire_r_buffer_len, inquire_membuf. (_assuan_inquire_ext_cb, _assuan_inquire_release): New prototypes. * assuan-handler.c (PROCESS_DONE): New macro. (dummy_handler, std_handler_nop, std_handler_cancel) (std_handler_option, std_handler_bye, std_handler_auth) (std_handler_reset, std_handler_end): Use PROCESS_DONE to optionally call assuan_process_done if CTX->in_process_next is true. (assuan_process_done, process_next): New functions. (assuan_process_next): Rewritten to support external event handling. * mkerrors: Do not clear high bits of -1 for old style EOF. * assuan-inquire.c (_assuan_inquire_release) (_assuan_inquire_ext_cb, assuan_inquire_ext): New functions. * assuan-pipe-server.c (_assuan_release_context): Call _assuan_inquire_release.
2007-07-12Introduced new type for better support of W32 HADNLES vs. file descriptors.Werner Koch1-10/+24
2007-07-05Switched to LGPLv3.libassuan-1.0.2Werner Koch1-5/+7
2007-07-042007-07-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
Change _WIN32 to HAVE_W32_SYSTEM for consistency. * assuan-defs.h (struct assuan_context_s): Have full peercred structure even if not HAVE_SO_PEERCRED, but not if HAVE_W32_SYSTEM.
2007-06-12Various minor changes for W32Werner Koch1-0/+2
2006-11-14New functions assuan_set_io_monitor and assuan_register_post_cmd_notifyWerner Koch1-0/+11
2006-10-16Mapped another error.Werner Koch1-0/+2
2006-09-192006-09-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* assuan.h (assuan_init_socket_server_ext) [_ASSUAN_EXT_SYM_PREFIX]: Fix typo in macro.
2006-09-19Fixed problems Nelson H. F. Beebe reported when doing build tests on severalWerner Koch1-73/+71
platforms.
2006-09-192006-09-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+2
* assuan.h (enum): Avoid trailing comma in enumerator list. Ugh.
2006-09-14Preparing a new releaselibassuan-0.9.0Werner Koch1-4/+24
2006-09-13More tweaks for descriptor passing.Werner Koch1-7/+14
gpg-connect-agent may now be used as a test program.
2006-09-12Integrated descriptor passing.Werner Koch1-21/+12
2006-09-11Added stuff to the manual. Minor prototype cleanups.Werner Koch1-3/+3
2006-09-10fixesWerner Koch1-3/+2
2006-09-06Changes to support gpg-error style error codes.Werner Koch1-17/+65
2005-10-24Fixed and clarified copyright noticesWerner Koch1-1/+2
2005-10-012005-10-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+4
* assuan.h (assuan_pipe_connect, assuan_pipe_connect2): Make type of ARGV parameter const in prototype. * assuan-pipe-connect.c (assuan_pipe_connect, assuan_pipe_connect2): Likewise in declaration. (assuan_pipe_connect2): Add braindead cast to make execv happy.
2005-08-09* mkerrors: Include config.h into assuan-errors.c. This isWerner Koch1-2/+125
required so that assuan.h knows about the W32 macro. * assuan.h [_ASSUAN_EXT_SYM_PREFIX]: New. * assuan-io.c [_ASSUAN_NO_PTH]: New. * assuan-pipe-connect.c (fix_signals) [_ASSUAN_NO_FIXED_SIGNALS]: New. (assuan_pipe_connect2) [_ASSUAN_USE_DOUBLE_FORK]: Use double fork. (fix_signals) [_ASSUAN_USE_DOUBLE_FORK]: Do not wait..
2005-06-20Preparing for 0.6.10libassuan-0-6-10Werner Koch1-2/+2
2005-05-22* assuan-util.c (assuan_set_flag, assuan_get_flag): New.Werner Koch1-0/+21
* assuan-defs.h (struct assuan_context_s): New field flags. * assuan.h (assuan_flag_t): New with one flag value ASSUAN_NO_WAITPID for now. * assuan-pipe-connect.c (do_finish): Take care of the no_waitpid flag.
2004-11-24Small API update and Windows fixesWerner Koch1-2/+2
2004-01-24(assuan_pipe_connect2): New as anWerner Koch1-1/+5
extension of assuan_pipe_connect. Made the latter call this one.
2004-01-14(_assuan_cookie_write_data): Return theWerner Koch1-1/+1
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 Koch1-22/+31
2003-12-16* assuan-buffer.c: Changed formatting of the debug output prefix.Werner Koch1-7/+16
* 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-11-12(process_request): Kludge to print better errorWerner Koch1-54/+61
messages for gpg-error enabled programs.
2003-04-29* libassuan.m4: New. Based on libgrypt.m4.Werner Koch1-1/+1
* 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-182003-02-17 Neal H. Walfield <[email protected]>Neal Walfield1-9/+22
* 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 Walfield1-0/+6
* 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-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield1-0/+6
* 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 Walfield1-1/+21
* 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-10-292002-09-05 Neal H. Walfield <[email protected]>Neal Walfield1-2/+0
* 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 Koch1-1/+1
2002-07-30Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch1-13/+13
2002-05-23* assuan-util.c (assuan_set_io_func): New.V0-3-8V0-3-7NEWPG-0-3-8NEWPG-0-3-7Werner Koch1-0/+4
* 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-03-04Minor fixes; about to release 0.3.1V0-3-1NEWPG-0-3-1Werner Koch1-0/+3
2002-02-28* assuan-client.c (assuan_transact): Add 2 more arguments toWerner Koch1-2/+6
support status lines. Passing NULL yields the old behaviour. * assuan-handler.c (process_request): Flush data lines send without using the data fp.
2002-02-18A bunch of new features. Allow empty responses on an inquiry.Werner Koch1-0/+7
2002-01-21* assuan-connect.c: Move all except assuan_get_pid to...Werner Koch1-3/+8
* 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.
2002-01-20* assuan.h: Added Invalid Option error code.Werner Koch1-0/+7
* 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.
2002-01-19* assuan-buffer.c (_assuan_read_line): Add output logging.Werner Koch1-1/+8
(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.
2002-01-15* maperror.c: Add mapping for Not_Trusted.Werner Koch1-0/+1
2002-01-11new error codesWerner Koch1-0/+2
2002-01-10* assuan-handler.c (assuan_set_okay_line): New.Werner Koch1-0/+1
(process_request): And use it here.
2001-12-19The last log had an incorrect changelog entry, and was missing a fix.Marcus Brinkmann1-3/+1
2001-12-14 Marcus Brinkmann <[email protected]> * assuan-connect.c (assuan_pipe_connect): New argument FD_CHILD_LIST. Don't close those fds. * assuan.h: Likewise for prototype.
2001-12-14* assuan-listen.c (assuan_close_input_fd): New.V0-0-0NEWPG-0-0-0Werner Koch1-0/+2
(assuan_close_output_fd): New. * assuan-handler.c (std_handler_reset): Always close them after a reset command. (std_handler_bye): Likewise.
2001-12-13assuan/Marcus Brinkmann1-0/+1
2001-12-14 Marcus Brinkmann <[email protected]> * assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH. assuan.h: Define ASSUAN_LINELENGTH. agent/ 2001-12-14 Marcus Brinkmann <[email protected]> * query.c (LINELENGTH): Removed. (agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH. sm/ 2001-12-14 Marcus Brinkmann <[email protected]> * call-agent.c (LINELENGTH): Removed. (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH. (gpgsm_agent_pkdecrypt): Likewise.