2001-11-23 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_sign): Implement it according to the current protocol definition.
This commit is contained in:
parent
64da5fc845
commit
8c3726d634
@ -1,3 +1,8 @@
|
|||||||
|
2001-11-23 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* engine-gpgsm.c (_gpgme_gpgsm_op_sign): Implement it according to
|
||||||
|
the current protocol definition.
|
||||||
|
|
||||||
2001-11-23 Marcus Brinkmann <marcus@g10code.de>
|
2001-11-23 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* engine-gpgsm.c (_gpgme_gpgsm_new): Set CLOEXEC flag for parent
|
* engine-gpgsm.c (_gpgme_gpgsm_new): Set CLOEXEC flag for parent
|
||||||
|
@ -395,8 +395,28 @@ _gpgme_gpgsm_op_sign (GpgsmObject gpgsm, GpgmeData in, GpgmeData out,
|
|||||||
GpgmeSigMode mode, int use_armor,
|
GpgmeSigMode mode, int use_armor,
|
||||||
int use_textmode, GpgmeCtx ctx /* FIXME */)
|
int use_textmode, GpgmeCtx ctx /* FIXME */)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
AssuanError err;
|
||||||
return mk_error (Not_Implemented);
|
|
||||||
|
if (!gpgsm)
|
||||||
|
return mk_error (Invalid_Value);
|
||||||
|
|
||||||
|
gpgsm->command = xtrystrdup (mode == GPGME_SIG_MODE_DETACH
|
||||||
|
? "VERIFY --detach" : "VERIFY");
|
||||||
|
if (!gpgsm->command)
|
||||||
|
return mk_error (Out_Of_Core);
|
||||||
|
|
||||||
|
gpgsm->input_data = in;
|
||||||
|
err = gpgsm_set_fd (gpgsm->assuan_ctx, "INPUT", gpgsm->input_fd_server);
|
||||||
|
if (err)
|
||||||
|
return mk_error (General_Error); /* FIXME */
|
||||||
|
gpgsm->output_data = out;
|
||||||
|
err = gpgsm_set_fd (gpgsm->assuan_ctx, "OUTPUT", gpgsm->output_fd_server);
|
||||||
|
if (err)
|
||||||
|
return mk_error (General_Error); /* FIXME */
|
||||||
|
_gpgme_io_close (gpgsm->message_fd);
|
||||||
|
gpgsm->message_fd = -1;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
GpgmeError
|
GpgmeError
|
||||||
|
Loading…
Reference in New Issue
Block a user