1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-04 20:38:50 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
Werner Koch
f60b29f2ee * assuan-buffer.c (assuan_write_line): Make sure we never
accidently print an extra LF.
2002-06-26 12:51:15 +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
18c85a72a9 * assuan-buffer.c (my_log_prefix): New. Use it for all i/o debug output. 2002-04-09 18:36:20 +00:00
Werner Koch
ebb00fa843 * assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.
* assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.
2002-02-12 20:41: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
Marcus Brinkmann
788a9bc51f 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* 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-14 01:23:07 +00:00
Marcus Brinkmann
d7db0736fd 2001-12-13 Marcus Brinkmann <marcus@gnu.org>
* assuan-buffer.c (assuan_read_line): Fix order of execution to
	get correct return values.

2001-12-13  Werner Koch  <wk@gnupg.org>

	* assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
	pretty obvious that nobody ever tested this function.
2001-12-13 20:16:21 +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
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
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