diff options
author | David Shaw <dshaw@jabberwocky.com> | 2002-09-24 20:29:57 +0200 |
---|---|---|
committer | David Shaw <dshaw@jabberwocky.com> | 2002-09-24 20:29:57 +0200 |
commit | 5835a804263f2ac7c4f4cbc49d9476064083ecbe (patch) | |
tree | 5d6ed747d85514d4d8d9df38881adfd0f18fac85 /include | |
parent | * THANKS: Remove duplicate. (diff) | |
download | gnupg2-5835a804263f2ac7c4f4cbc49d9476064083ecbe.tar.xz gnupg2-5835a804263f2ac7c4f4cbc49d9476064083ecbe.zip |
* keyserver.h: Add some new error codes for better GPA support.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/keyserver.h | 20 |
2 files changed, 18 insertions, 6 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index d486b05de..f27980a90 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2002-09-24 David Shaw <dshaw@jabberwocky.com> + + * keyserver.h: Add some new error codes for better GPA support. + 2002-09-10 Werner Koch <wk@gnupg.org> * mpi.h (mpi_is_protected, mpi_set_protect_flag) diff --git a/include/keyserver.h b/include/keyserver.h index 017711a76..886c7a0a1 100644 --- a/include/keyserver.h +++ b/include/keyserver.h @@ -1,5 +1,5 @@ /* keyserver.h - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002 Free Software Foundation, Inc. * * This file is part of GNUPG. * @@ -21,11 +21,19 @@ #ifndef _KEYSERVER_H_ #define _KEYSERVER_H_ -/* Return codes */ -#define KEYSERVER_OK 0 -#define KEYSERVER_INTERNAL_ERROR 1 -#define KEYSERVER_NOT_SUPPORTED 2 -#define KEYSERVER_VERSION_ERROR 3 +/* These are usable for return codes for the gpgkeys_ process, and + also KEY FAILED codes. */ +#define KEYSERVER_OK 0 /* not an error */ +#define KEYSERVER_INTERNAL_ERROR 1 /* gpgkeys_ internal error */ +#define KEYSERVER_NOT_SUPPORTED 2 /* operation not supported */ +#define KEYSERVER_VERSION_ERROR 3 /* VERSION mismatch */ +#define KEYSERVER_GENERAL_ERROR 4 /* keyserver internal error */ +#define KEYSERVER_NO_MEMORY 5 /* out of memory */ +#define KEYSERVER_KEY_NOT_FOUND 6 /* key not found */ +#define KEYSERVER_KEY_EXISTS 7 /* key already exists */ +#define KEYSERVER_KEY_INCOMPLETE 8 /* key incomplete (EOF) */ + +/* Must be 127 due to shell internal magic. */ #define KEYSERVER_SCHEME_NOT_FOUND 127 #endif /* !_KEYSERVER_H_ */ |