Home GnuPG
Diffusion GPGME d2b72d3cc19f

core: Minor change of the gpgme_op_edit semantics.
d2b72d3cc19fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

core: Minor change of the gpgme_op_edit semantics.

* src/edit.c (command_handler): Handle special error code.
* src/engine-gpg.c (read_status): Ditto.
* src/engine-gpgsm.c (status_handler): Ditto.
* src/engine-uiserver.c (status_handler): Ditto.
* src/util.h (GPG_ERR_FALSE): Define for older libgpg-error versions.

An edit callback may now simply return GPG_ERR_FALSE to indicate that
it did not handled the status code. GPGME will the do the appropriate
action, which is to send an empty line.

Note that it is highly unlikely that GPG_ERR_FALSE has ever been used
by an application as return value from an edit interactor.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 15 2016, 9:24 AM
Parents
rM7c37719d7934: core: New function gpgme_op_tofu_policy
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rMd2b72d3cc19f: core: Minor change of the gpgme_op_edit semantics. (authored by Werner Koch <wk@gnupg.org>).Sep 15 2016, 9:24 AM