Home GnuPG
Diffusion GPGME e4a95746ada2

cpp: Handle smart card op failure status messages

Description

cpp: Handle smart card op failure status messages

* lang/cpp/src/editinteractor.cpp (parse_sc_op_failure): New.
(CallbackHelper::edit_interactor_callback_impl): Parse failure code on
GPGME_STATUS_SC_OP_FAILURE status.
(sc_op_failure_to_error): New.

This converts a SC_OP_FAILURE status message logged by gpg to a
corresponding error. Unfortunately, GPG_ERR_BAD_PIN and
GPG_ERR_BAD_RESET_CODE are mapped to the same SC_OP_FAILURE code, so
that we had to choose one.

Details

Provenance
ikloeckerAuthored on Fri, Apr 5, 3:08 PM
Parents
rM67057d83f5bd: Qt: Fix windows build of new jobs
Branches
Unknown
Tags
Unknown
References
HEAD -> master
Tasks
T6971: Kleopatra: "General Error" is given instead of "Wrong PIN"