[Pkg-gnupg-commit] [libgpg-error] 09/32: Add error codes GPG_ERR_TOO_YOUNG and GPG_ERR_TOO_OLD.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Nov 16 01:31:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository libgpg-error.

commit 49e32eed4550869644d706352d683ddba5696d4e
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Nov 2 10:05:37 2016 +0100

    Add error codes GPG_ERR_TOO_YOUNG and GPG_ERR_TOO_OLD.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 NEWS               | 2 ++
 doc/errorref.txt   | 8 ++++++++
 src/err-codes.h.in | 2 ++
 3 files changed, 12 insertions(+)

diff --git a/NEWS b/NEWS
index a646c7d..b1c8c6c 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,8 @@ Noteworthy changes in version 1.25 (unreleased) [C19/A19/R_)
  GPG_ERR_USER_ID_EXISTS           NEW.
  GPG_ERR_NAME_EXISTS              NEW.
  GPG_ERR_DUP_NAME                 NEW.
+ GPG_ERR_TOO_OLD                  NEW.
+ GPG_ERR_TOO_YOUNG                NEW.
 
 
 Noteworthy changes in version 1.24 (2016-07-14) [C19/A19/R1)
diff --git a/doc/errorref.txt b/doc/errorref.txt
index da5df23..0ea7d76 100644
--- a/doc/errorref.txt
+++ b/doc/errorref.txt
@@ -851,6 +851,14 @@ GPG_ERR_USER_ID_EXISTS (304)	User ID already exists
 GPG_ERR_NAME_EXISTS (305)	Name already exists
 GPG_ERR_DUP_NAME (306)		Duplicated name
 
+GPG_ERR_TOO_YOUNG (307)		Objects is too young
+
+    For example used if a file is younger than expected.
+
+GPG_ERR_TOO_OLD	(308		Objects is too old
+
+    Used if an object is too old to be used.  This is a more generic
+    code than GPG_ERR_ENGINE_TOO_OLD or GPG_ERR_CRL_TOO_OLD.
 
 GPG_ERR_LDAP_GENERAL		LDAP General error
 
diff --git a/src/err-codes.h.in b/src/err-codes.h.in
index 1bf717d..f29c234 100644
--- a/src/err-codes.h.in
+++ b/src/err-codes.h.in
@@ -326,6 +326,8 @@
 304	GPG_ERR_USER_ID_EXISTS		User ID already exists
 305	GPG_ERR_NAME_EXISTS		Name already exists
 306	GPG_ERR_DUP_NAME		Duplicated name
+307	GPG_ERR_TOO_YOUNG		Objects is too young
+308	GPG_ERR_TOO_OLD			Objects is too old
 # This range is free for use.
 
 #

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git



More information about the Pkg-gnupg-commit mailing list