From 05258d427513a933f01d4df13aca834d797f91e7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 8 Dec 2014 11:19:16 +0100 Subject: Return an error for some export key operations. * src/context.h (OPDATA_EXPORT): New. * src/export.c (op_data_t): New. (release_op_data): New. (parse_error): New. (export_status_handler): New. (export_start, export_ext_start): Prepare op_data. (gpgme_op_export_ext, gpgme_op_export_keys): Return an error from the status handler. -- To support an error return also for the async functions we need to extend the API. Until we have done that this new features helps at least in some cases; in particular for --send-keys. --- src/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index e9214368..745ffa89 100644 --- a/src/context.h +++ b/src/context.h @@ -38,7 +38,7 @@ typedef enum OPDATA_DECRYPT, OPDATA_SIGN, OPDATA_ENCRYPT, OPDATA_PASSPHRASE, OPDATA_IMPORT, OPDATA_GENKEY, OPDATA_KEYLIST, OPDATA_EDIT, OPDATA_VERIFY, OPDATA_TRUSTLIST, OPDATA_ASSUAN, OPDATA_VFS_MOUNT, - OPDATA_PASSWD + OPDATA_PASSWD, OPDATA_EXPORT } ctx_op_data_id_t; -- cgit v1.2.3