Commit Graph

32 Commits

Author SHA1 Message Date
Werner Koch 29ef9bd0fb Updated from latest NewPG project 2003-01-09 13:15:07 +00:00
Werner Koch 346b6a32e2 * assuan.h: Renamed Bad_Certificate_Path to Bad_Certificate_Chain. 2002-08-16 14:24:25 +00:00
Werner Koch 7de95ff2e6 Changed the lincese for Assuan to LGPL. 2002-07-30 17:38:54 +00:00
Werner Koch 72f48d9e8a * assuan-util.c (assuan_set_io_func): New.
* 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-05-23 09:07:12 +00:00
Werner Koch dfda938ee9 Minor fixes; about to release 0.3.1 2002-03-04 10:35:34 +00:00
Werner Koch f8c8ca26d4 * assuan-client.c (assuan_transact): Add 2 more arguments to
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-28 11:05:57 +00:00
Werner Koch a46e786221 A bunch of new features. Allow empty responses on an inquiry. 2002-02-18 20:45:52 +00:00
Werner Koch 416c0b7ea2 * assuan-connect.c: Move all except assuan_get_pid to...
* 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-21 12:03:14 +00:00
Werner Koch a2fd247cf2 * assuan.h: Added Invalid Option error code.
* 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-20 16:49:34 +00:00
Werner Koch f58da1883a * assuan-buffer.c (_assuan_read_line): Add output logging.
(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-19 18:20:15 +00:00
Werner Koch a6a2595dba * maperror.c: Add mapping for Not_Trusted. 2002-01-15 13:02:13 +00:00
Werner Koch bc37e6d30e new error codes 2002-01-11 17:07:05 +00:00
Werner Koch 489207db37 * assuan-handler.c (assuan_set_okay_line): New.
(process_request): And use it here.
2002-01-10 19:46:04 +00:00
Marcus Brinkmann 22cf28674a The last log had an incorrect changelog entry, and was missing a fix.
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

	* assuan-connect.c (assuan_pipe_connect): New argument
	FD_CHILD_LIST.  Don't close those fds.
	* assuan.h: Likewise for prototype.
2001-12-19 00:20:55 +00:00
Werner Koch 8cd7e2ab8d * assuan-listen.c (assuan_close_input_fd): New.
(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 19:35:56 +00:00
Marcus Brinkmann e6336cb1ff assuan/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

	* assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH.
	assuan.h: Define ASSUAN_LINELENGTH.

agent/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

	* query.c (LINELENGTH): Removed.
	(agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH.

sm/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

	* call-agent.c (LINELENGTH): Removed.
	(gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
	(gpgsm_agent_pkdecrypt): Likewise.
2001-12-13 23:20:02 +00:00
Werner Koch d0eb9ade2c * assuan-connect.c (assuan_pipe_connect): Implemented the inital
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-12 09:17:23 +00:00
Werner Koch 0d2ea2811b new error codes 2001-12-11 12:27:10 +00:00
Werner Koch ac88a4e804 assuan-connect.c (assuan_pipe_connect): Add more error reporting.
assuan-client.c: New.
assuan-inquire.c: New.
assuan-handler.c (process_request): Check for nested invocations.
2001-12-05 23:45:01 +00:00
Werner Koch 5a6a2ca248 * assuan-handler.c (assuan_register_input_notify): New.
(assuan_register_output_notify): New.
2001-11-27 17:39:09 +00:00
Werner Koch ce8a236195 More error codes 2001-11-26 13:08:00 +00:00
Werner Koch dd797e336e * assuan.h: Added more status codes. 2001-11-26 09:07:11 +00:00
Werner Koch 8cf367848a (assuan_process): Moved bulk of function to ..
(process_request): .. new.
(assuan_process_next): One shot version of above.
(assuan_get_active_fds): New.
NOTE - this has not been tested yet.
2001-11-25 16:52:42 +00:00
Werner Koch c0d12ef3fb * assuan-handler.c (assuan_register_bye_notify)
(assuan_register_reset_notify)
(assuan_register_cancel_notify): New and call them from the
standard handlers.
2001-11-25 14:53:39 +00:00
Werner Koch 2be29a3cd2 * assuan-connect.c (assuan_get_pid): New - actually done by Marcus in gpgme.
Set the line length back to the old value.
2001-11-24 21:20:22 +00:00
Werner Koch 8e58435312 Signing does now work. There is no secret key management yet, so you
should set GPGSM_FAKE_KEY=1 before you try to verify a signature
created by gpgsm --sign or the SIGN server command.
2001-11-24 14:26:27 +00:00
Marcus Brinkmann 6e41d49e50 * assuan.h: Prototype assuan_pipe_connect and assuan_pipe_disconnect. 2001-11-20 02:22:23 +00:00
Werner Koch ff1ba2fdc7 Added code for data lines. For ease of implementation we need glibc
(custom streams).
2001-11-19 16:15:43 +00:00
Werner Koch f375790d24 Allow to store an arbitrary pointer in the context.
Added assuan_write_status().
2001-11-19 12:40:30 +00:00
Werner Koch 7166bd6a5d Assuan server mode is now basically usable 2001-11-07 17:43:05 +00:00
Werner Koch 4fcb72b382 gpgsm does now build and a dummy server can be started. 2001-11-06 19:14:14 +00:00
Werner Koch 1f79656dad First chunk of code for the Assuan library 2001-11-06 15:42:37 +00:00