2001-12-21 Marcus Brinkmann <marcus@g10code.de>

* engine-gpgsm.c (_gpgme_gpgsm_new): Replace General_Error with
	Pipe_Error where appropriate.
This commit is contained in:
Marcus Brinkmann 2001-12-21 01:41:12 +00:00
parent a087259977
commit d088ff5626
3 changed files with 14 additions and 4 deletions

5
TODO
View File

@ -18,6 +18,11 @@
* Move code common to all engines up from gpg to engine.
* Error Values
** Map ASSUAN error values.
** Map GpgSM ERR messages.
** Verify (and document) if Read_Error, Write_Error, Pipe_Error set errno.
* Tests
** t-data
*** Test gpgme_data_release_and_get_mem.

View File

@ -1,3 +1,8 @@
2001-12-21 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_new): Replace General_Error with
Pipe_Error where appropriate.
2001-12-19 Marcus Brinkmann <marcus@g10code.de>
* engine.c: Include `string.h'. Reported by Stéphane Corthésy.

View File

@ -158,7 +158,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm)
if (_gpgme_io_pipe (fds, 0) < 0)
{
err = mk_error (General_Error);
err = mk_error (Pipe_Error);
goto leave;
}
gpgsm->input_fd = fds[1];
@ -166,7 +166,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm)
if (_gpgme_io_pipe (fds, 1) < 0)
{
err = mk_error (General_Error);
err = mk_error (Pipe_Error);
goto leave;
}
gpgsm->output_fd = fds[0];
@ -174,7 +174,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm)
if (_gpgme_io_pipe (fds, 0) < 0)
{
err = mk_error (General_Error);
err = mk_error (Pipe_Error);
goto leave;
}
gpgsm->message_fd = fds[1];
@ -676,7 +676,7 @@ _gpgme_gpgsm_start (GpgsmObject gpgsm, void *opaque)
nfds = assuan_get_active_fds (gpgsm->assuan_ctx, 0 /* read fds */,
fdlist, DIM (fdlist));
if (nfds < 1)
return mk_error (General_Error);
return mk_error (General_Error); /* FIXME */
err = _gpgme_register_pipe_handler (opaque, gpgsm_status_handler, gpgsm, pid,
fdlist[0], 1);