diff options
author | Marcus Brinkmann <[email protected]> | 2002-06-25 12:10:27 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2002-06-25 12:10:27 +0000 |
commit | 3ea78f5a20fe80bd819fb643053a190ce42ff58a (patch) | |
tree | dfc8d133e6f3fb06322e6286b60a23f8b50a9d4e /gpgme/export.c | |
parent | 2002-06-25 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-3ea78f5a20fe80bd819fb643053a190ce42ff58a.tar.gz gpgme-3ea78f5a20fe80bd819fb643053a190ce42ff58a.zip |
2002-06-25 Marcus Brinkmann <[email protected]>
* engine-gpgsm.c (_gpgme_gpgsm_op_export): Only export the keys
listed in RECP.
* export.c (gpgme_op_export): If no data was returned, return
GPGME_No_Recipients.
Diffstat (limited to '')
-rw-r--r-- | gpgme/export.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gpgme/export.c b/gpgme/export.c index c222861e..968de2e1 100644 --- a/gpgme/export.c +++ b/gpgme/export.c @@ -99,6 +99,12 @@ gpgme_op_export (GpgmeCtx ctx, GpgmeRecipients recipients, GpgmeData keydata) { GpgmeError err = _gpgme_op_export_start (ctx, 1, recipients, keydata); if (!err) - err = _gpgme_wait_one (ctx); + { + err = _gpgme_wait_one (ctx); + /* XXX We don't get status information. */ + if (!ctx->error && gpgme_data_get_type (keydata) == GPGME_DATA_TYPE_NONE) + ctx->error = mk_error (No_Recipients); + err = ctx->error; + } return err; } |