aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-07-17 08:57:13 +0000
committerWerner Koch <[email protected]>2003-07-17 08:57:13 +0000
commit00bd02695f2524da39a3f4f08236d4ad374d8c50 (patch)
treea25e789c33379467d2a2cf1fc3d689ce00c4b889
parent2003-07-16 Moritz Schulte <[email protected]> (diff)
downloadlibgpg-error-00bd02695f2524da39a3f4f08236d4ad374d8c50.tar.gz
libgpg-error-00bd02695f2524da39a3f4f08236d4ad374d8c50.zip
* src/gpg-error.h: Add HARDWARE, PIN_BLOCKED and USE_CONDITIONS.
-rw-r--r--ChangeLog4
-rw-r--r--src/err-codes.h.in3
-rw-r--r--src/gpg-error.h5
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e1a683..317cac5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-17 Werner Koch <[email protected]>
+
+ * src/gpg-error.h: Add HARDWARE, PIN_BLOCKED and USE_CONDITIONS.
+
2003-07-16 Moritz Schulte <[email protected]>
* src/gpg-error.h (gpg_err_code): Cast return value to
diff --git a/src/err-codes.h.in b/src/err-codes.h.in
index 0be3fa6..13f9059 100644
--- a/src/err-codes.h.in
+++ b/src/err-codes.h.in
@@ -146,6 +146,9 @@
126 Nothing found
127 Wrong blob type
128 Missing value
+129 Hardware problem
+130 PIN blocked
+131 Conditions of use not satisfied
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 dc75c82..a964579 100644
--- a/src/gpg-error.h
+++ b/src/gpg-error.h
@@ -217,7 +217,10 @@ typedef enum
GPG_ERR_WRONG_BLOB_TYPE = 127, /* Keybox BLOB of wrong type. */
GPG_ERR_MISSING_VALUE = 128, /* A required value is missing. */
- /* 129 to 149 are free to be used. */
+ 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_INV_ENGINE = 150,
GPG_ERR_PUBKEY_NOT_TRUSTED = 151,