Home GnuPG
Diffusion GPGME f3ca57dfd7af

core: Handle import status lines during keylist operation

Description

core: Handle import status lines during keylist operation

* src/import.c (import_status_handler): Rename to ...
(_gpgme_import_status_handler): this. Make non-static.
(_gpgme_op_import_init_result): New.
(_gpgme_op_import_start, _gpgme_op_import_keys_start,
_gpgme_op_receive_keys_start): Call _gpgme_op_import_init_result.
* src/keylist.c (keylist_status_handler): Call
_gpgme_import_status_handler to handle import status lines.
(gpgme_op_keylist_start, gpgme_op_keylist_ext_start): Call
_gpgme_op_import_init_result.
* src/ops.h (_gpgme_op_import_init_result,
_gpgme_import_status_handler): New prototypes.

If a keylist operation with keylist mode GPGME_KEYLIST_MODE_LOCATE is
run, then gpg emits import status lines. Handling those status lines
allows users to retrieve the result of a --locate-(external)-keys
command.

Details

Provenance
ikloeckerAuthored on May 4 2022, 2:23 PM
Parents
rMd911a1536488: cpp: Allow merging the results of two imports
Branches
Unknown
Tags
Unknown
Tasks
T5951: gpgme: Add support for refreshing OpenPGP keys