diff options
author | Marcus Brinkmann <[email protected]> | 2003-06-01 21:26:20 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2003-06-01 21:26:20 +0000 |
commit | cae221feb6b1da368bac19c3371d3b302c8ecedb (patch) | |
tree | a152adcefe52eae5599be61b0ecaf82c3c99800b | |
parent | 2003-06-01 Marcus Brinkmann <[email protected]> (diff) | |
download | libgpg-error-cae221feb6b1da368bac19c3371d3b302c8ecedb.tar.gz libgpg-error-cae221feb6b1da368bac19c3371d3b302c8ecedb.zip |
2003-06-01 Marcus Brinkmann <[email protected]>
* src/gpg-error.h (gpg_err_code_t): Remove GPG_ERR_FILE_READ,
GPG_ERR_FILE_WRITE, GPG_ERR_FILE_OPEN, GPG_ERR_FILE_CREATE,
GPG_ERR_FILE_CLOSE, GPG_ERR_FILE_DELETE, GPG_ERR_FILE_EXISTS,
GPG_ERR_FILE, GPG_ERR_IO, GPG_ERR_OUT_OF_CORE, GPG_ERR_READ_ERROR,
GPG_ERR_WRITE_ERROR.
* src/err-codes.h.in: Likewise.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/err-codes.h.in | 13 | ||||
-rw-r--r-- | src/gpg-error.h | 29 |
3 files changed, 21 insertions, 28 deletions
@@ -1,5 +1,12 @@ 2003-06-01 Marcus Brinkmann <[email protected]> + * src/gpg-error.h (gpg_err_code_t): Remove GPG_ERR_FILE_READ, + GPG_ERR_FILE_WRITE, GPG_ERR_FILE_OPEN, GPG_ERR_FILE_CREATE, + GPG_ERR_FILE_CLOSE, GPG_ERR_FILE_DELETE, GPG_ERR_FILE_EXISTS, + GPG_ERR_FILE, GPG_ERR_IO, GPG_ERR_OUT_OF_CORE, GPG_ERR_READ_ERROR, + GPG_ERR_WRITE_ERROR. + * src/err-codes.h.in: Likewise. + * src/Makefile.am (EXTRA_DIST): Add err-sources.h and err-codes.h. * src/mkerrcodes1.awk: New file. diff --git a/src/err-codes.h.in b/src/err-codes.h.in index 474f1c3..1c9c871 100644 --- a/src/err-codes.h.in +++ b/src/err-codes.h.in @@ -48,15 +48,6 @@ 18 Wrong secret key used 19 Bad session key 20 Unknown compression algorithm -21 Reading file failed -22 Writing file failed -23 Opening file failed -24 Creating file failed -25 Closing file failed -26 Renaming file failed -27 Deleting file failed -28 File exists -29 File error 30 Bad MPI value 31 Invalid passphrase 32 Invalid signature class @@ -69,7 +60,6 @@ 39 Time conflict 40 Keyserver error 41 Wrong public key algorithm -42 I/O error 43 Weak encryption key 44 Invalid key length 45 Invalid argument @@ -89,7 +79,6 @@ 59 Bug 60 Not supported 61 Invalid operation code -62 Out of core 63 Internal error 64 EOF (gcrypt) 65 Invalid object @@ -100,8 +89,6 @@ 70 Conflicting use 71 Invalid cipher mode 72 Invalid flag -73 Read error -74 Write error 75 Incomplete line 76 Invalid response 77 No agent running diff --git a/src/gpg-error.h b/src/gpg-error.h index fdf4c58..5c89f38 100644 --- a/src/gpg-error.h +++ b/src/gpg-error.h @@ -92,15 +92,9 @@ typedef enum GPG_ERR_WRONG_SECKEY = 18, /* Wrong secret key used. */ GPG_ERR_BAD_KEY = 19, /* Bad (session) key. */ GPG_ERR_COMPR_ALGO = 20, /* Unknown compress algorithm. */ - GPG_ERR_FILE_READ = 21, - GPG_ERR_FILE_WRITE = 22, - GPG_ERR_FILE_OPEN = 23, - GPG_ERR_FILE_CREATE = 24, - GPG_ERR_FILE_CLOSE = 25, - GPG_ERR_FILE_RENAME = 26, - GPG_ERR_FILE_DELETE = 27, - GPG_ERR_FILE_EXISTS = 28, - GPG_ERR_FILE = 29, + + /* Codes 21 to 29 are unused. */ + GPG_ERR_BAD_MPI = 30, /* Problem with an MPI's value. */ GPG_ERR_INV_PASSPHRASE = 31, /* Invalid passphrase. */ GPG_ERR_SIG_CLASS = 32, @@ -113,7 +107,9 @@ typedef enum GPG_ERR_TIME_CONFLICT = 39, GPG_ERR_KEYSERVER = 40, GPG_ERR_WRONG_PUBKEY_ALGO = 41, /* Wrong public key algorithm. */ - GPG_ERR_IO = 42, /* I/O error. */ + + /* Code 42 is free. */ + GPG_ERR_WEAK_KEY = 43, /* Weak encryption key. */ GPG_ERR_INV_KEYLEN = 44, /* Invalid length of a key. */ GPG_ERR_INV_ARG = 45, /* Invalid argument. */ @@ -121,19 +117,21 @@ typedef enum GPG_ERR_INV_URI = 47, /* Unsupported scheme and similar. */ GPG_ERR_NETWORK = 48, /* General network error. */ GPG_ERR_UNKNOWN_HOST = 49, - GPG_ERR_SELFTEST_FAILED = 50, /* Selftest failed. */ + GPG_ERR_SELFTEST_FAILED = 50, GPG_ERR_NOT_ENCRYPTED = 51, GPG_ERR_NOT_PROCESSED = 52, GPG_ERR_UNUSABLE_PUBKEY = 53, GPG_ERR_UNUSABLE_SECKEY = 54, - GPG_ERR_INV_VALUE = 55, /* Invalid value. */ + GPG_ERR_INV_VALUE = 55, GPG_ERR_BAD_CERT_CHAIN = 56, GPG_ERR_MISSING_CERT = 57, GPG_ERR_NO_DATA = 58, GPG_ERR_BUG = 59, GPG_ERR_NOT_SUPPORTED = 60, GPG_ERR_INV_OP = 61, /* Invalid operation code. */ - GPG_ERR_OUT_OF_CORE = 62, /* Out of core ("Keine Kerne"). */ + + /* Code 62 is free. */ + GPG_ERR_INTERNAL = 63, /* Internal error. */ GPG_ERR_EOF_GCRYPT = 64, /* Compatibility for gcrypt. */ GPG_ERR_INV_OBJ = 65, /* An object is not valid. */ @@ -144,8 +142,9 @@ typedef enum GPG_ERR_CONFLICT = 70, /* Conflicting use. */ GPG_ERR_INV_CIPHER_MODE = 71, /* Invalid cipher mode. */ GPG_ERR_INV_FLAG = 72, /* Invalid flag. */ - GPG_ERR_READ_ERROR = 73, - GPG_ERR_WRITE_ERROR = 74, + + /* Codes 73 and 74 are unused. */ + GPG_ERR_INCOMPLETE_LINE = 75, GPG_ERR_INVALID_RESPONSE = 76, GPG_ERR_NO_AGENT = 77, |