aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-05-25Preparing a release.libassuan-1.0.5Werner Koch1-1/+2
2007-10-08Add assuan_set_io_hooks.Werner Koch1-0/+15
2007-10-052007-10-05 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+2
* assuan.h (_assuan_error_is_eagain): Add prefix macro.
2007-10-05Map WSANOTINITIALIZED to ENOSYS.Werner Koch1-1/+2
2007-10-02Add new API assuan_set_sock_nonce.Werner Koch1-0/+5
Fixed a blocking problem on Windows.
2007-10-01Add socket wrapper API.Werner Koch1-11/+77
Changed the ABI ofthe W32 socket emulation.
2007-09-25Fixed a name clash in internal symbols used only under W32.Werner Koch1-0/+2
2007-09-112007-09-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* assuan.h: Use _WIN32 instead of HAVE_W32_SYSTEM.
2007-09-03Fix filename at top of file.Marcus Brinkmann1-1/+1
2007-09-032007-09-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+11
* assuan.h [_ASSUAN_EXT_SYM_PREFIX]: Add missing symbol renames with _ASSUAN_PREFIX.
2007-09-03doc/Marcus Brinkmann1-2/+3
2007-09-03 Marcus Brinkmann <[email protected]> * assuan.texi: Fix prototype and documentation for assuan_inquire_ext. src/ 2007-09-03 Marcus Brinkmann <[email protected]> * assuan.h (assuan_inquire_ext): Move buffer and buffer_length arguments callback in prototype. * assuan-defs.h (struct assuan_context_s): Remove members inquire_r_buffer and inquire_r_buffer_len. Add buffer and buffer length arguments to inquire_cb. * assuan-inquire.c (_assuan_inquire_ext_cb): Return buffer and buffer length via callback. (assuan_inquire_ext): Move buffer and buffer length arguments to callback.
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