aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fixesWerner Koch2006-09-101-3/+2
|
* Changes to support gpg-error style error codes.Werner Koch2006-09-061-17/+65
|
* Fixed and clarified copyright noticesWerner Koch2005-10-241-1/+2
|
* 2005-10-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-011-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.
* * mkerrors: Include config.h into assuan-errors.c. This isWerner Koch2005-08-091-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..
* Preparing for 0.6.10libassuan-0-6-10Werner Koch2005-06-201-2/+2
|
* * assuan-util.c (assuan_set_flag, assuan_get_flag): New.Werner Koch2005-05-221-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.
* Small API update and Windows fixesWerner Koch2004-11-241-2/+2
|
* (assuan_pipe_connect2): New as anWerner Koch2004-01-241-1/+5
| | | | | extension of assuan_pipe_connect. Made the latter call this one.
* (_assuan_cookie_write_data): Return theWerner Koch2004-01-141-1/+1
| | | | | | 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-181-22/+31
|
* * assuan-buffer.c: Changed formatting of the debug output prefix.Werner Koch2003-12-161-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.
* (process_request): Kludge to print better errorWerner Koch2003-11-121-54/+61
| | | | | messages for gpg-error enabled programs.
* * libassuan.m4: New. Based on libgrypt.m4.Werner Koch2003-04-291-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-17 Neal H. Walfield <[email protected]>Neal Walfield2003-02-181-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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-251-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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-241-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-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-241-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-09-05 Neal H. Walfield <[email protected]>Neal Walfield2002-10-291-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.
* * 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-161-1/+1
|
* Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch2002-07-301-13/+13
|
* * assuan-util.c (assuan_set_io_func): New.V0-3-8V0-3-7NEWPG-0-3-8NEWPG-0-3-7Werner Koch2002-05-231-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.
* 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-281-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.
* A bunch of new features. Allow empty responses on an inquiry.Werner Koch2002-02-181-0/+7
|
* * assuan-connect.c: Move all except assuan_get_pid to...Werner Koch2002-01-211-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.
* * assuan.h: Added Invalid Option error code.Werner Koch2002-01-201-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.
* * assuan-buffer.c (_assuan_read_line): Add output logging.Werner Koch2002-01-191-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.
* * maperror.c: Add mapping for Not_Trusted.Werner Koch2002-01-151-0/+1
|
* new error codesWerner Koch2002-01-111-0/+2
|
* * assuan-handler.c (assuan_set_okay_line): New.Werner Koch2002-01-101-0/+1
| | | | | (process_request): And use it here.
* The last log had an incorrect changelog entry, and was missing a fix.Marcus Brinkmann2001-12-191-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.
* * assuan-listen.c (assuan_close_input_fd): New.V0-0-0NEWPG-0-0-0Werner Koch2001-12-141-0/+2
| | | | | | | | (assuan_close_output_fd): New. * assuan-handler.c (std_handler_reset): Always close them after a reset command. (std_handler_bye): Likewise.
* assuan/Marcus Brinkmann2001-12-131-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.
* * assuan-connect.c (assuan_pipe_connect): Implemented the initalWerner Koch2001-12-121-1/+7
| | | | | | | | | | | | | | | handshake. * assuan-client.c (read_from_server): Renamed to (_assuan_read_from_server): this and made external. * assuan-listen.c (assuan_set_hello_line): New. (assuan_accept): Use a custom hello line is available. * assuan-buffer.c (assuan_read_line): New. (assuan_pending_line): New. (_assuan_write_line): Renamed to .. (assuan_write_line): this, made public and changed all callers.
* new error codesWerner Koch2001-12-111-0/+1
|
* assuan-connect.c (assuan_pipe_connect): Add more error reporting.Werner Koch2001-12-051-1/+31
| | | | | | | assuan-client.c: New. assuan-inquire.c: New. assuan-handler.c (process_request): Check for nested invocations.
* * assuan-handler.c (assuan_register_input_notify): New.Werner Koch2001-11-271-0/+4
| | | | | (assuan_register_output_notify): New.
* More error codesWerner Koch2001-11-261-1/+1
|
* * assuan.h: Added more status codes.Werner Koch2001-11-261-0/+13
|
* (assuan_process): Moved bulk of function to ..Werner Koch2001-11-251-0/+5
| | | | | | | | (process_request): .. new. (assuan_process_next): One shot version of above. (assuan_get_active_fds): New. NOTE - this has not been tested yet.
* * assuan-handler.c (assuan_register_bye_notify)Werner Koch2001-11-251-0/+8
| | | | | | | (assuan_register_reset_notify) (assuan_register_cancel_notify): New and call them from the standard handlers.
* * assuan-connect.c (assuan_get_pid): New - actually done by Marcus in gpgme.Werner Koch2001-11-241-0/+4
| | | | | Set the line length back to the old value.
* Signing does now work. There is no secret key management yet, so youWerner Koch2001-11-241-0/+1
| | | | | | should set GPGSM_FAKE_KEY=1 before you try to verify a signature created by gpgsm --sign or the SIGN server command.
* * assuan.h: Prototype assuan_pipe_connect and assuan_pipe_disconnect.Marcus Brinkmann2001-11-201-0/+5
|
* Added code for data lines. For ease of implementation we need glibcWerner Koch2001-11-191-0/+1
| | | | | (custom streams).
* Allow to store an arbitrary pointer in the context.Werner Koch2001-11-191-0/+5
| | | | | Added assuan_write_status().
* Assuan server mode is now basically usableWerner Koch2001-11-071-8/+22
|
* gpgsm does now build and a dummy server can be started.Werner Koch2001-11-061-2/+4
|