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:
parent
a087259977
commit
d088ff5626
5
TODO
5
TODO
@ -18,6 +18,11 @@
|
|||||||
|
|
||||||
* Move code common to all engines up from gpg to engine.
|
* 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
|
* Tests
|
||||||
** t-data
|
** t-data
|
||||||
*** Test gpgme_data_release_and_get_mem.
|
*** Test gpgme_data_release_and_get_mem.
|
||||||
|
@ -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>
|
2001-12-19 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* engine.c: Include `string.h'. Reported by Stéphane Corthésy.
|
* engine.c: Include `string.h'. Reported by Stéphane Corthésy.
|
||||||
|
@ -158,7 +158,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm)
|
|||||||
|
|
||||||
if (_gpgme_io_pipe (fds, 0) < 0)
|
if (_gpgme_io_pipe (fds, 0) < 0)
|
||||||
{
|
{
|
||||||
err = mk_error (General_Error);
|
err = mk_error (Pipe_Error);
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
gpgsm->input_fd = fds[1];
|
gpgsm->input_fd = fds[1];
|
||||||
@ -166,7 +166,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm)
|
|||||||
|
|
||||||
if (_gpgme_io_pipe (fds, 1) < 0)
|
if (_gpgme_io_pipe (fds, 1) < 0)
|
||||||
{
|
{
|
||||||
err = mk_error (General_Error);
|
err = mk_error (Pipe_Error);
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
gpgsm->output_fd = fds[0];
|
gpgsm->output_fd = fds[0];
|
||||||
@ -174,7 +174,7 @@ _gpgme_gpgsm_new (GpgsmObject *r_gpgsm)
|
|||||||
|
|
||||||
if (_gpgme_io_pipe (fds, 0) < 0)
|
if (_gpgme_io_pipe (fds, 0) < 0)
|
||||||
{
|
{
|
||||||
err = mk_error (General_Error);
|
err = mk_error (Pipe_Error);
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
gpgsm->message_fd = fds[1];
|
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 */,
|
nfds = assuan_get_active_fds (gpgsm->assuan_ctx, 0 /* read fds */,
|
||||||
fdlist, DIM (fdlist));
|
fdlist, DIM (fdlist));
|
||||||
if (nfds < 1)
|
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,
|
err = _gpgme_register_pipe_handler (opaque, gpgsm_status_handler, gpgsm, pid,
|
||||||
fdlist[0], 1);
|
fdlist[0], 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user