diff options
author | Ingo Klöcker <[email protected]> | 2024-04-05 13:08:01 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-04-05 13:08:01 +0000 |
commit | e4a95746ada20d41161c3cdfb36d5167e2712098 (patch) | |
tree | 200b364d9dac960b4e80bf60bef9e839e499d253 /src | |
parent | Qt: Fix windows build of new jobs (diff) | |
download | gpgme-e4a95746ada20d41161c3cdfb36d5167e2712098.tar.gz gpgme-e4a95746ada20d41161c3cdfb36d5167e2712098.zip |
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.
GnuPG-bug-id: 6971
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions