2002-06-25 Marcus Brinkmann <marcus@g10code.de>
* engine-gpgsm.c (_gpgme_gpgsm_op_export): Implement.
This commit is contained in:
parent
969ceb2e6e
commit
ea042a1fa9
@ -1,3 +1,7 @@
|
|||||||
|
2002-06-25 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* engine-gpgsm.c (_gpgme_gpgsm_op_export): Implement.
|
||||||
|
|
||||||
2002-06-21 Marcus Brinkmann <marcus@g10code.de>
|
2002-06-21 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* engine-gpgsm.c (gpgsm_assuan_simple_command): Return ERR.
|
* engine-gpgsm.c (gpgsm_assuan_simple_command): Return ERR.
|
||||||
|
@ -759,8 +759,24 @@ GpgmeError
|
|||||||
_gpgme_gpgsm_op_export (GpgsmObject gpgsm, GpgmeRecipients recp,
|
_gpgme_gpgsm_op_export (GpgsmObject gpgsm, GpgmeRecipients recp,
|
||||||
GpgmeData keydata, int use_armor)
|
GpgmeData keydata, int use_armor)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
GpgmeError err;
|
||||||
return mk_error (Not_Implemented);
|
|
||||||
|
if (!gpgsm)
|
||||||
|
return mk_error (Invalid_Value);
|
||||||
|
|
||||||
|
gpgsm->command = xtrystrdup ("EXPORT");
|
||||||
|
if (!gpgsm->command)
|
||||||
|
return mk_error (Out_Of_Core);
|
||||||
|
|
||||||
|
gpgsm->output_cb.data = keydata;
|
||||||
|
err = gpgsm_set_fd (gpgsm->assuan_ctx, "OUTPUT", gpgsm->output_fd_server,
|
||||||
|
use_armor ? "--armor" : 0);
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
_gpgme_io_close (gpgsm->input_cb.fd);
|
||||||
|
_gpgme_io_close (gpgsm->message_cb.fd);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user