From 0318ce6fbc756c4d3a9201472c7dcbedd91bf885 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 11 Feb 2019 08:44:50 +0100 Subject: 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 --- NEWS | 6 ++++++ doc/errorref.txt | 9 +++++++++ src/err-codes.h.in | 2 ++ 3 files changed, 17 insertions(+) diff --git a/NEWS b/NEWS index f86b2a1..f7c043e 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.3