1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-31 20:08:43 +01:00
Commit Graph

32 Commits

Author SHA1 Message Date
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
Marcus Brinkmann
84b6169de7 assuan/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

	* 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  <marcus@g10code.de>

	* query.c (start_pinentry): Add new argument to assuan_pipe_connect.

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

	* call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
2001-12-19 00:18:11 +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
Werner Koch
7606e3b33a * util.h (digitp, hexdigitp): New ctype like macros.
(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-14 13:43:42 +00:00
Marcus Brinkmann
0cc8790425 Change history, doubleplusgood. 2001-12-14 01:28:22 +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
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
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
717bc63ad2 Fixed INPUT/OUTPUT command 2001-12-13 09:07:28 +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
5a4cbaf443 Add a copyright note to the bottom 2001-11-24 22:20:00 +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
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
Marcus Brinkmann
647001387f * assuan-connect.c (assuan_pipe_connect): Require NAME to be set.
Using ARGV[0] automatically is bad mojo.
2001-11-19 23:44:46 +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
a014d87d1c we are now able to check self-signed certificates 2001-11-10 18:08:10 +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