aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-12-03 09:01:38 +0000
committerWerner Koch <[email protected]>2014-12-03 09:01:38 +0000
commit149fe98e1279b065edb06958d9a73a0c013c2db9 (patch)
tree545b622a5dc59b37e13a63ba655c57adcb60e872
parentpo: Add Serbian translation. (diff)
downloadlibgpg-error-149fe98e1279b065edb06958d9a73a0c013c2db9.tar.gz
libgpg-error-149fe98e1279b065edb06958d9a73a0c013c2db9.zip
Add GPG_ERR_FORBIDDEN.
-rw-r--r--NEWS4
-rw-r--r--doc/errorref.txt4
-rw-r--r--src/err-codes.h.in3
3 files changed, 9 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 3404f7d..d6a3eb4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,10 @@
Noteworthy changes in version 1.18 (unreleased) [C13/A13/R_]
-----------------------------------------------
+ * Interface changes relative to the 1.17 release:
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ GPG_ERR_FORBIDDEN NEW.
+
Noteworthy changes in version 1.17 (2014-10-15) [C13/A13/R0]
-----------------------------------------------
diff --git a/doc/errorref.txt b/doc/errorref.txt
index 07b7cd4..886a304 100644
--- a/doc/errorref.txt
+++ b/doc/errorref.txt
@@ -718,6 +718,10 @@ GPG_ERR_BOGUS_STRING Bogus string
possible dangerous characters (e.g. control characters in a domain
name).
+GPG_ERR_FORBIDDEN Forbidden
+
+ The use of a features is not allowed to to insuffcient rights.
+ Use by gpg-agent as aerror codes for restricted commands.
GPG_ERR_KEY_DISABLED Key disabled
diff --git a/src/err-codes.h.in b/src/err-codes.h.in
index 704049c..5990bd0 100644
--- a/src/err-codes.h.in
+++ b/src/err-codes.h.in
@@ -274,8 +274,7 @@
248 GPG_ERR_BAD_HS_SERVER_KEX Bad server key exchange message in handshake
249 GPG_ERR_BAD_HS_CLIENT_KEX Bad client key exchange message in handshake
250 GPG_ERR_BOGUS_STRING Bogus string
-# 251 is free to be used.
-
+251 GPG_ERR_FORBIDDEN Forbidden
252 GPG_ERR_KEY_DISABLED Key disabled
253 GPG_ERR_KEY_ON_CARD Not possible with a card based key
254 GPG_ERR_INV_LOCK_OBJ Invalid lock object