aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-09-30 17:36:53 +0000
committerWerner Koch <[email protected]>2003-09-30 17:36:53 +0000
commitadd4ced9159c114ba42c2b9b8aa9ef49b5af2528 (patch)
tree9fbd558125860e5ffe9dde00995de89ea21e6356
parent2003-09-13 Marcus Brinkmann <[email protected]> (diff)
downloadlibgpg-error-add4ced9159c114ba42c2b9b8aa9ef49b5af2528.tar.gz
libgpg-error-add4ced9159c114ba42c2b9b8aa9ef49b5af2528.zip
Add PIN_NOT_SYNCED.
-rw-r--r--ChangeLog4
-rw-r--r--src/err-codes.h.in1
-rw-r--r--src/gpg-error.h7
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 57103fd..10731b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-30 Werner Koch <[email protected]>
+
+ * src/gpg-error.h: Add PIN_NOT_SYNCED.
+
2003-09-13 Marcus Brinkmann <[email protected]>
* configure.ac: Invoke AC_FUNC_STRERROR_R.
diff --git a/src/err-codes.h.in b/src/err-codes.h.in
index a46f521..34b9c10 100644
--- a/src/err-codes.h.in
+++ b/src/err-codes.h.in
@@ -150,6 +150,7 @@
129 Hardware problem
130 PIN blocked
131 Conditions of use not satisfied
+132 PINs are not synced
150 Invalid crypto engine
151 Public key not trusted
152 Decryption failed
diff --git a/src/gpg-error.h b/src/gpg-error.h
index 08e20f6..cf6d2f5 100644
--- a/src/gpg-error.h
+++ b/src/gpg-error.h
@@ -220,10 +220,11 @@ typedef enum
GPG_ERR_WRONG_BLOB_TYPE = 127, /* Keybox BLOB of wrong type. */
GPG_ERR_MISSING_VALUE = 128, /* A required value is missing. */
- GPG_ERR_HARDWARE = 129, /* e.g. EEPROM error of a smartcard. */
+ GPG_ERR_HARDWARE = 129, /* e.g. EEPROM error of a smartcard. */
GPG_ERR_PIN_BLOCKED = 130,
- GPG_ERR_USE_CONDITIONS = 131, /* e.g. used with smartcards. */
- /* 132 to 149 are free to be used. */
+ GPG_ERR_USE_CONDITIONS = 131, /* e.g. used with smartcards. */
+ GPG_ERR_PIN_NOT_SYNCED = 132, /* e.g. for OpenPGP card: CHV1 != CHV2. */
+ /* 133 to 149 are free to be used. */
GPG_ERR_INV_ENGINE = 150,
GPG_ERR_PUBKEY_NOT_TRUSTED = 151,