aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-handler.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed and clarified copyright noticesWerner Koch2005-10-241-1/+2
|
* (struct assuan_io): Renamed elements READ andWerner Koch2005-03-221-1/+1
| | | | | | WRITE to READFNC and WRITEFNC to avoid problems with read defined as macros. Changed callers. Noted by Ville Skytt��.
* Small API update and Windows fixesWerner Koch2004-11-241-4/+8
|
* 2004-11-23 Timo Schulz <[email protected]>Timo Schulz2004-11-241-2/+2
| | | | | | | | | | | | | | | | | | * assuan-socket.c (_assuan_sock_connect): Get local port from the sun_path[] file. (_assuan_sock_bind): Write local port to the sun_path[] file. * assuan-socket-connect.c (assuan_socket_connect): Use DIRSEP_C for a better portability. (assuan-defs.h): Define DIRSEP_C. 2004-11-22 Timo Schulz <[email protected]> * assuan-io.c (_assuan_simple_read, _assuan_simple_write): W32 support. * assuan-socket.c (_assuan_close): New. (_assuan_sock_new): New. (_assuan_sock_bind): New.
* Include <errno.h>. Reported by Bernd Kuhls.Werner Koch2004-03-141-0/+1
|
* (assuan_get_data_fp): Fail with ENOSYS if weWerner Koch2004-02-181-0/+5
| | | | | can't implement this.
* doc typo fixesWerner Koch2003-12-081-1/+1
|
* (process_request): Kludge to print better errorWerner Koch2003-11-121-4/+36
| | | | | messages for gpg-error enabled programs.
* * libassuan.m4: New. Based on libgrypt.m4.Werner Koch2003-04-291-50/+43
| | | | | | | | | | | * 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.
* /Neal Walfield2003-02-181-27/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2002-11-24 Neal H. Walfield <[email protected]>Neal Walfield2002-11-251-4/+4
| | | | | | | | | * 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-14/+21
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch2002-07-301-13/+33
|
* * assuan-client.c (assuan_transact): Add 2 more arguments toWerner Koch2002-02-281-1/+7
| | | | | | | support status lines. Passing NULL yields the old behaviour. * assuan-handler.c (process_request): Flush data lines send without using the data fp.
* * assuan.h: Added Invalid Option error code.Werner Koch2002-01-201-2/+87
| | | | | | | | | * 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/+3
| | | | | | | | | | | | | | | | | | | (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.
* * assuan-handler.c (assuan_set_okay_line): New.Werner Koch2002-01-101-1/+35
| | | | | (process_request): And use it here.
* * assuan-listen.c (assuan_close_input_fd): New.V0-0-0NEWPG-0-0-0Werner Koch2001-12-141-0/+4
| | | | | | | | (assuan_close_output_fd): New. * assuan-handler.c (std_handler_reset): Always close them after a reset command. (std_handler_bye): Likewise.
* * util.h (digitp, hexdigitp): New ctype like macros.Werner Koch2001-12-141-1/+2
| | | | | | | | (atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New. * command.c: Removed the conversion macros as they are now in ../common/util.h.
* 2001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-131-1/+1
| | | | | | | | | | | * assuan-buffer.c (assuan_read_line): Fix order of execution to get correct return values. 2001-12-13 Werner Koch <[email protected]> * assuan-handler.c (assuan_get_active_fds): Fixed silly bug, pretty obvious that nobody ever tested this function.
* Fixed INPUT/OUTPUT commandWerner Koch2001-12-131-3/+4
|
* * assuan-connect.c (assuan_pipe_connect): Implemented the initalWerner Koch2001-12-121-5/+5
| | | | | | | | | | | | | | | 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.
* assuan-connect.c (assuan_pipe_connect): Add more error reporting.Werner Koch2001-12-051-0/+3
| | | | | | | 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/+24
| | | | | (assuan_register_output_notify): New.
* (assuan_process): Moved bulk of function to ..Werner Koch2001-11-251-49/+112
| | | | | | | | (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-2/+36
| | | | | | | (assuan_register_reset_notify) (assuan_register_cancel_notify): New and call them from the standard handlers.
* Added code for data lines. For ease of implementation we need glibcWerner Koch2001-11-191-16/+49
| | | | | (custom streams).
* Allow to store an arbitrary pointer in the context.Werner Koch2001-11-191-0/+40
| | | | | Added assuan_write_status().
* Assuan server mode is now basically usableWerner Koch2001-11-071-42/+147
|
* First chunk of code for the Assuan libraryWerner Koch2001-11-061-0/+253