diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | NEWS | 44 | ||||
-rw-r--r-- | src/err-codes.h.in | 36 | ||||
-rw-r--r-- | src/err-sources.h.in | 3 |
4 files changed, 87 insertions, 5 deletions
@@ -1,3 +1,12 @@ +2006-09-05 Werner Koch <[email protected]> + + * src/err-sources.h.in (GPG_ERR_SOURCE_ANY): New. This is so that + we have source distinguished from the Unknown one but declaring + that it is an gpg-error style error code. + + * src/err-codes.h.in: Added GPG_ERR_ASS_* codes, rabnge 257-281. + (GPG_ERR_MISSING_ERRNO): New. + 2006-07-04 Marcus Brinkmann <[email protected]> * src/init.c (get_locale_dir): Return NULL instead of garbage. @@ -3,6 +3,46 @@ Noteworthy changes in version 1.4 (unreleased) * Support for Common Lisp is included. + * New error codes for the Assuan IPC library. + + * New error code GPG_ERR_MISSING_ERRNO to be used in cases when a + system accidently does not set errno but a system error definitely + occured. + + * New error source GPG_ERR_SOURCE_ANY to allow proper use of + libgpg-error even if a specific source is not available. + + * Interface changes relative to the 1.2 release: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + GPG_ERR_SOURCE_ANY NEW + GPG_ERR_MISSING_ERRNO NEW + GPG_ERR_ASS_GENERAL NEW + GPG_ERR_ASS_ACCEPT_FAILED NEW + GPG_ERR_ASS_CONNECT_FAILED NEW + GPG_ERR_ASS_INV_RESPONSE NEW + GPG_ERR_ASS_INV_VALUE NEW + GPG_ERR_ASS_INCOMPLETE_LINE NEW + GPG_ERR_ASS_LINE_TOO_LONG NEW + GPG_ERR_ASS_NESTED_COMMANDS NEW + GPG_ERR_ASS_NO_DATA_CB NEW + GPG_ERR_ASS_NO_INQUIRE_CB NEW + GPG_ERR_ASS_NOT_A_SERVER NEW + GPG_ERR_ASS_NOT_A_CLIENT NEW + GPG_ERR_ASS_SERVER_START NEW + GPG_ERR_ASS_READ_ERROR NEW + GPG_ERR_ASS_WRITE_ERROR NEW + GPG_ERR_ASS_SERVER_FAULT NEW + GPG_ERR_ASS_TOO_MUCH_DATA NEW + GPG_ERR_ASS_UNEXPECTED_CMD NEW + GPG_ERR_ASS_UNKNOWN_CMD NEW + GPG_ERR_ASS_SYNTAX NEW + GPG_ERR_ASS_CANCELED NEW + GPG_ERR_ASS_NO_INPUT NEW + GPG_ERR_ASS_NO_OUTPUT NEW + GPG_ERR_ASS_PARAMETER NEW + GPG_ERR_ASS_UNKNOWN_INQUIRE NEW + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Noteworthy changes in version 1.3 (2006-03-14) ---------------------------------------------- @@ -68,7 +108,7 @@ Noteworthy changes in version 0.7 (2004-03-07) evaluate to plain numbers, but expressions. If you want to cross-compile, you might have to set CC_FOR_BUILD, though. - * A new tool gpg-error to convert error numbers into symbols into + * A new tool gpg-error to convert error numbers into symbols into strings is provided. * Interface changes relative to the 0.6 release: @@ -128,7 +168,7 @@ GPG_ERR_INV_CRL_OBJ NEW GPG_ERR_UNSUPPORTED_CRL_VERSION NEW GPG_ERR_INV_CERT_OBJ NEW GPG_ERR_UNKNOWN_NAME NEW -GPG_ERR_BUFFER_TOO_SHORT. NEW +GPG_ERR_BUFFER_TOO_SHORT. NEW ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Noteworthy changes in version 0.5 (2003-10-06) diff --git a/src/err-codes.h.in b/src/err-codes.h.in index b3165ce..3cabbb2 100644 --- a/src/err-codes.h.in +++ b/src/err-codes.h.in @@ -223,7 +223,38 @@ 212 GPG_ERR_SEXP_ODD_HEX_NUMBERS Odd hexadecimal numbers in S-expression 213 GPG_ERR_SEXP_BAD_OCT_CHAR Bad octadecimal character in S-expression -# 214 to 1023 are free to be used. +# 214 to 254 are free to be used. 255 and 256 are RFU. + +# Error codes pertaining to the Assuan IPC interface +257 GPG_ERR_ASS_GENERAL General IPC error +258 GPG_ERR_ASS_ACCEPT_FAILED IPC accept call failed +259 GPG_ERR_ASS_CONNECT_FAILED IPC connect call failed +260 GPG_ERR_ASS_INV_RESPONSE Invalid IPC response +261 GPG_ERR_ASS_INV_VALUE Invalid value passed to IPC +262 GPG_ERR_ASS_INCOMPLETE_LINE Incomplete line passed to IPC +263 GPG_ERR_ASS_LINE_TOO_LONG Line passed to IPC too long +264 GPG_ERR_ASS_NESTED_COMMANDS Nested IPC commands +265 GPG_ERR_ASS_NO_DATA_CB No data callback in IPC +266 GPG_ERR_ASS_NO_INQUIRE_CB No inquire callback in IPC +267 GPG_ERR_ASS_NOT_A_SERVER Not an IPC server +268 GPG_ERR_ASS_NOT_A_CLIENT Not an IPC client +269 GPG_ERR_ASS_SERVER_START Problem starting IPC server +270 GPG_ERR_ASS_READ_ERROR IPC read error +271 GPG_ERR_ASS_WRITE_ERROR IPC write error +272 GPG_ERR_ASS_SERVER_FAULT IPC server fault +273 GPG_ERR_ASS_TOO_MUCH_DATA Too much data for IPC layer +274 GPG_ERR_ASS_UNEXPECTED_CMD Unexpected IPC command +275 GPG_ERR_ASS_UNKNOWN_CMD Unknown IPC command +276 GPG_ERR_ASS_SYNTAX IPC syntax error +277 GPG_ERR_ASS_CANCELED IPC call has been cancelled +278 GPG_ERR_ASS_NO_INPUT No input source for IPC +279 GPG_ERR_ASS_NO_OUTPUT No output source for IPC +280 GPG_ERR_ASS_PARAMETER IPC parameter error +281 GPG_ERR_ASS_UNKNOWN_INQUIRE Unknown IPC inquire + +# 282 to 299 are reserved for future assuan codes. + +# 300 to 1023 are free to be used. # For free use by non-GnuPG components. 1024 GPG_ERR_USER_1 User defined error code 1 @@ -243,8 +274,9 @@ 1038 GPG_ERR_USER_15 User defined error code 15 1039 GPG_ERR_USER_16 User defined error code 16 -# 1040 to 16381 are free to be used. +# 1040 to 16380 are free to be used. +16381 GPG_ERR_MISSING_ERRNO System error w/o errno 16382 GPG_ERR_UNKNOWN_ERRNO Unknown system error 16383 GPG_ERR_EOF End of file diff --git a/src/err-sources.h.in b/src/err-sources.h.in index 9af23fd..d6182a5 100644 --- a/src/err-sources.h.in +++ b/src/err-sources.h.in @@ -42,8 +42,9 @@ 10 GPG_ERR_SOURCE_DIRMNGR Dirmngr 11 GPG_ERR_SOURCE_GSTI GSTI -# 11 to 31 are free to be used. +# 11 to 30 are free to be used. +31 GPG_ERR_SOURCE_ANY Any source 32 GPG_ERR_SOURCE_USER_1 User defined source 1 33 GPG_ERR_SOURCE_USER_2 User defined source 2 34 GPG_ERR_SOURCE_USER_3 User defined source 3 |