Home GnuPG
Diffusion GPGME db532eca8ebd

cpp: Return actual error if revocation fails

Description

cpp: Return actual error if revocation fails

* lang/cpp/src/editinteractor.cpp, lang/cpp/src/editinteractor.h
(EditInteractor::parseStatusError): New.
* lang/cpp/src/gpgrevokekeyeditinteractor.cpp
(GpgRevokeKeyEditInteractor::Private::nextState): Handle status
error.

With this change the interactor returns a proper error like "Bad
Passphrase" or "Empty Passphrase" instead of an unspecific "General
Error" if a status error occurred.

Details

Provenance
ikloeckerAuthored on Apr 4 2022, 1:15 PM
Parents
rMc965b45bcd91: cpp: Add internal utility function for splitting strings
Branches
Unknown
Tags
Unknown
Tasks
T5904: gpgme: Revoke own key