Home GnuPG
Diffusion GnuPG 4963f13f8fa9

scd:openpgp: Return better error codes for the Reset Code.

Description

scd:openpgp: Return better error codes for the Reset Code.

* scd/app-openpgp.c (do_change_pin): Use GPG_ERR_BAD_RESET_CODE where
appropriate.
* common/util.h: Add error codes missing in gpgrt 1.46.
* agent/call-pinentry.c (unlock_pinentry): Handle
GPG_ERR_BAD_RESET_CODE.
(agent_askpin): Ditlo.  Also simply condition.
(agent_get_passphrase):  Ditto.
* g10/call-agent.c (status_sc_op_failure): Handle
GPG_ERR_BAD_RESET_CODE.
* g10/card-util.c (write_sc_op_status): Ditto.
* tools/card-call-scd.c (status_sc_op_failure): Ditto.

Details

Provenance
wernerAuthored on Oct 6 2023, 12:04 PM
Parents
rG24b3a5a5794d: sm: Support more HMAC algos in the pkcs#12 parser.
Branches
Unknown
Tags
Unknown