1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-30 02:32:46 +02:00
Commit Graph

14 Commits

Author SHA1 Message Date
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
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
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
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
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
d3a626ba68 * assuan-buffer.c (_assuan_read_line): Deal with reads of more
than a line.
* assuan-defs.h: Add space in the context for this.
2001-11-24 21:10:22 +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
Marcus Brinkmann
2b2a800a77 * assuan-connect.c (assuan_pipe_connect): New function.
(assuan_pipe_disconnect): Likewise.
	* assuan-defs.h (struct assuan_context_s): New member PID.
2001-11-19 12:09:50 +00:00
Werner Koch
7166bd6a5d Assuan server mode is now basically usable 2001-11-07 17:43:05 +00:00
Werner Koch
1f79656dad First chunk of code for the Assuan library 2001-11-06 15:42:37 +00:00