diff options
author | Werner Koch <[email protected]> | 2003-06-03 19:55:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-06-03 19:55:50 +0000 |
commit | c3cdaeeff72486e52118054d92ac518c17aa3812 (patch) | |
tree | 7abfa77336a37f8f02526498c4f77fba33b965bf /common/errors.h | |
parent | * options.h, g10.c (main), keylist.c (list_keyblock_print): Add (diff) | |
download | gnupg-c3cdaeeff72486e52118054d92ac518c17aa3812.tar.gz gnupg-c3cdaeeff72486e52118054d92ac518c17aa3812.zip |
Make use of libgpg-error
Diffstat (limited to 'common/errors.h')
-rw-r--r-- | common/errors.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/errors.h b/common/errors.h index c28149fb6..143898b04 100644 --- a/common/errors.h +++ b/common/errors.h @@ -23,7 +23,13 @@ #include "util.h" -/* Error numbers */ +#ifdef GPG_ERR_SOURCE_DEFAULT +# define GPG_ERR_INVALID_VALUE GPG_ERR_INV_VALUE +# define GPG_ERR_INVALID_DATA GPG_ERR_INV_DATA +# define GPG_ERR_INVALID_SEXP GPG_ERR_INV_SEXP +#else /*GPG_ERR_SOURCE_DEFAUL*/ +/* Error numbers. Note, that they are onkly used for old code not yet + converted to libgpg-error. */ enum { GNUPG_EOF = -1, GNUPG_No_Error = 0, @@ -104,6 +110,7 @@ enum { GNUPG_Unsupported_Operation = 75, GNUPG_Wrong_Key_Usage = 76, }; +#endif /* !GPG_ERR_SOURCE_DEFAULT */ /* Status codes - fixme: should go into another file */ enum { |