diff options
author | Werner Koch <wk@gnupg.org> | 2019-02-11 09:07:54 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-02-11 09:07:54 +0100 |
commit | b2838694402ce0cfc2ef70451bf0e6677b875ca9 (patch) | |
tree | 8890d855a7623eb1740a0d1f9fd07e941f6a8903 /common/util.h | |
parent | scd: Implement RSA signing for PIV cards. (diff) | |
download | gnupg2-b2838694402ce0cfc2ef70451bf0e6677b875ca9.tar.xz gnupg2-b2838694402ce0cfc2ef70451bf0e6677b875ca9.zip |
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>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index d5bb225a7..8895137ec 100644 --- a/common/util.h +++ b/common/util.h @@ -39,7 +39,10 @@ * libgpg-error version. Define them here. * Example: (#if GPG_ERROR_VERSION_NUMBER < 0x011500 // 1.21) */ - +#if GPG_ERROR_VERSION_NUMBER < 0x012400 /* 1.36 */ +#define GPG_ERR_NO_AUTH 314 +#define GPG_ERR_BAD_AUTH 315 +#endif /*GPG_ERROR_VERSION_NUMBER*/ /* Hash function used with libksba. */ #define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write) |