aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-11-252002-11-24 Neal H. Walfield <[email protected]>Neal Walfield3-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.
2002-11-24Fix tyop.Neal Walfield1-1/+1
2002-11-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield7-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-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield3-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-242002-11-24 Neal H. Walfield <[email protected]>Neal Walfield6-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-232002-11-23 Neal H. Walfield <[email protected]>Neal Walfield7-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-232002-11-23 Neal H. Walfield <[email protected]>Neal Walfield2-54/+63
* assuan-buffer.c (readline): Use memrchr. (_assuan_read_line): Rewritten to use the string functions.
2002-11-212002-11-20 Neal H. Walfield <[email protected]>Neal Walfield2-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-212002-11-20 Neal H. Walfield <[email protected]>Neal Walfield8-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.
2002-11-10Be more generous in typing equal signs and better watch out forNEWPG-0-9-4NEWPG-0-9-3Werner Koch1-1/+1
compiler suggestions. Ah well, actually test before commiting.
2002-11-10* assuan-pipe-connect.c (assuan_pipe_connect): Changed the orderWerner Koch2-35/+40
of the dups to handle cases where we have already used fd 2 for other things.
2002-10-312002-10-31 Neal H. Walfield <[email protected]>Neal Walfield2-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-10-292002-09-05 Neal H. Walfield <[email protected]>Neal Walfield8-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.
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 Koch2-1/+5
2002-07-30Changed the lincese for Assuan to LGPL.V0-3-10NEWPG-0-3-10Werner Koch16-195/+224
2002-06-27* gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.V0-3-9NEWPG-0-3-9Werner Koch2-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.
2002-06-26* assuan-buffer.c (assuan_write_line): Make sure we neverWerner Koch2-5/+18
accidently print an extra LF.
2002-05-23* assuan-util.c (assuan_set_io_func): New.V0-3-8V0-3-7NEWPG-0-3-8NEWPG-0-3-7Werner Koch7-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.
2002-04-09* 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 Koch2-8/+28
2002-03-06* 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 Koch2-0/+24
(assuan_transact): Pass it to the data callback.
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 Koch4-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.
2002-02-18A bunch of new features. Allow empty responses on an inquiry.Werner Koch6-18/+62
2002-02-12* assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.Werner Koch3-1/+23
* assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.
2002-02-012002-02-01 Marcus Brinkmann <[email protected]>V0-3-0NEWPG-0-3-0Marcus Brinkmann2-0/+5
* Makefile.am (MOSTLYCLEANFILES): New variable.
2002-01-23* assuan-socket-connect.c (LOGERRORX): and removed typo.Werner Koch2-1/+5
2002-01-222002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-1/+5
* assuan-socket-connect.c (LOGERRORX): Reverse arguments to fputs.
2002-01-21* assuan-connect.c: Move all except assuan_get_pid to...Werner Koch9-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.
2002-01-20* assuan.h: Added Invalid Option error code.Werner Koch4-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.
2002-01-19* assuan-buffer.c (_assuan_read_line): Add output logging.Werner Koch11-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.
2002-01-15* maperror.c: Add mapping for Not_Trusted.Werner Koch1-0/+1
2002-01-14* assuan-client.c (_assuan_read_from_server): Skip spaces afterWerner Koch2-0/+11
the keyword.
2002-01-11new error codesWerner Koch1-0/+2
2002-01-10* assuan-handler.c (assuan_set_okay_line): New.Werner Koch6-5/+56
(process_request): And use it here.
2001-12-19The last log had an incorrect changelog entry, and was missing a fix.Marcus Brinkmann2-6/+4
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-19assuan/Marcus Brinkmann2-3/+20
2001-12-14 Marcus Brinkmann <[email protected]> * assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use it to save the length of the attic line. Rediddle the code a bit to make it more clear what happens. agent/ 2001-12-19 Marcus Brinkmann <[email protected]> * query.c (start_pinentry): Add new argument to assuan_pipe_connect. sm/ 2001-12-19 Marcus Brinkmann <[email protected]> * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2001-12-14* assuan-listen.c (assuan_close_input_fd): New.V0-0-0NEWPG-0-0-0Werner Koch4-0/+40
(assuan_close_output_fd): New. * assuan-handler.c (std_handler_reset): Always close them after a reset command. (std_handler_bye): Likewise.
2001-12-14* util.h (digitp, hexdigitp): New ctype like macros.Werner Koch1-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-14Change history, doubleplusgood.Marcus Brinkmann1-1/+1
2001-12-142001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-12/+22
* assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use it to save the number of bytes left over after the complete line. Rediddle the code a bit to make it more clear what happens.
2001-12-13assuan/Marcus Brinkmann3-2/+8
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.
2001-12-132001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann3-2/+16
* 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.
2001-12-13Fixed INPUT/OUTPUT commandWerner Koch1-3/+4
2001-12-12* assuan-connect.c (assuan_pipe_connect): Implemented the initalWerner Koch10-44/+135
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.
2001-12-11new error codesWerner Koch1-0/+1
2001-12-05assuan-connect.c (assuan_pipe_connect): Add more error reporting.Werner Koch10-16/+605
assuan-client.c: New. assuan-inquire.c: New. assuan-handler.c (process_request): Check for nested invocations.
2001-11-27* assuan-handler.c (assuan_register_input_notify): New.Werner Koch4-1/+36
(assuan_register_output_notify): New.
2001-11-26More error codesWerner Koch1-1/+1
2001-11-26* assuan.h: Added more status codes.Werner Koch2-0/+17
2001-11-25(assuan_process): Moved bulk of function to ..Werner Koch3-49/+121
(process_request): .. new. (assuan_process_next): One shot version of above. (assuan_get_active_fds): New. NOTE - this has not been tested yet.