diff options
author | Werner Koch <[email protected]> | 2019-02-11 07:44:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-02-11 07:44:50 +0000 |
commit | 0318ce6fbc756c4d3a9201472c7dcbedd91bf885 (patch) | |
tree | 9c57ae28d7b59c448ac7ee21f178b549f34c931f | |
parent | build: Fix for Microsoft MSVC. (diff) | |
download | libgpg-error-0318ce6fbc756c4d3a9201472c7dcbedd91bf885.tar.gz libgpg-error-0318ce6fbc756c4d3a9201472c7dcbedd91bf885.zip |
New error codes NO_AUTH and BAD_AUTH
--
In particular for PIV cards ithe use of BAD_PIN sounds worong, thus
we now use dedicated codes.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | doc/errorref.txt | 9 | ||||
-rw-r--r-- | src/err-codes.h.in | 2 |
3 files changed, 17 insertions, 0 deletions
@@ -2,6 +2,12 @@ Noteworthy changes in version 1.36 (unreleased) [C26/A26/R_] ----------------------------------------------- + * Interface changes relative to the 1.34 release: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + GPG_ERR_NO_AUTH NEW. + GPG_ERR_BAD_AUTH NEW. + + Noteworthy changes in version 1.35 (2019-01-28) [C26/A26/R1] ----------------------------------------------- diff --git a/doc/errorref.txt b/doc/errorref.txt index 21d79ad..e62fe15 100644 --- a/doc/errorref.txt +++ b/doc/errorref.txt @@ -1058,6 +1058,15 @@ GPG_ERR_WRONG_NAME Wrong name NTBTLS: - Hostname does not match the certificate +GPG_ERR_NO_AUTH Not authenticated + + GnuPG: - A smartcard requires authentication + +GPG_ERR_BAD_AUTH Bad authentication + + GnuPG: - A smartcard could not be authenticated. For example + a wrong authentication key was used with a PIV card. + GPG_ERR_SYSTEM_BUG System bug detected The underlying operating system misbehaved. For example it wrote diff --git a/src/err-codes.h.in b/src/err-codes.h.in index 2667d71..33e79da 100644 --- a/src/err-codes.h.in +++ b/src/err-codes.h.in @@ -333,6 +333,8 @@ 311 GPG_ERR_ALREADY_FETCHED Already fetched 312 GPG_ERR_TRY_LATER Try again later 313 GPG_ERR_WRONG_NAME Wrong name +314 GPG_ERR_NO_AUTH Not authenticated +315 GPG_ERR_BAD_AUTH Bad authentication # This range is free for use. 666 GPG_ERR_SYSTEM_BUG System bug detected |