scd: For PIV cards used NO_AUTH instead of BAD_PIN.
authorWerner Koch <wk@gnupg.org>
Mon, 11 Feb 2019 08:07:54 +0000 (09:07 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 11 Feb 2019 08:07:54 +0000 (09:07 +0100)
commitb2838694402ce0cfc2ef70451bf0e6677b875ca9
tree8890d855a7623eb1740a0d1f9fd07e941f6a8903
parent53beea56afecde76f0f4ca93fc50ca59298a093e
scd: For PIV cards used NO_AUTH instead of BAD_PIN.

* common/util.h (GPG_ERR_NO_AUTH, GPG_ERR_BAD_AUTH): Add replacement
codes for gpgrt < 1.36.
* scd/app-piv.c (auth_adm_key):
(do_genkey, do_writecert): Use better error codes.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/util.h
scd/app-piv.c