* 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.
+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.
if (_gpgme_io_pipe (fds, 0) < 0)
{
- err = mk_error (General_Error);
+ err = mk_error (Pipe_Error);
goto leave;
}
gpgsm->input_fd = fds[1];
if (_gpgme_io_pipe (fds, 1) < 0)
{
- err = mk_error (General_Error);
+ err = mk_error (Pipe_Error);
goto leave;
}
gpgsm->output_fd = fds[0];
if (_gpgme_io_pipe (fds, 0) < 0)
{
- err = mk_error (General_Error);
+ err = mk_error (Pipe_Error);
goto leave;
}
gpgsm->message_fd = fds[1];
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);