diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-08-11 14:34:15 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-08-11 14:34:15 +0200 |
commit | 3d5e85faf9d1dbb3cf2d58f9accfc8d2db917016 (patch) | |
tree | efcd744bf7817334bb03598445db0cc46524230d | |
parent | cfa77b1f37a94585bea9aea81db7545a9c4fa7eb (diff) | |
download | gnutls-3d5e85faf9d1dbb3cf2d58f9accfc8d2db917016.tar.gz |
New errors GNUTLS_E_APPLICATION_ERROR_MIN..GNUTLS_E_APPLICATION_ERROR_MAX.
-rw-r--r-- | NEWS | 12 | ||||
-rw-r--r-- | includes/gnutls/gnutls.h.in | 3 |
2 files changed, 15 insertions, 0 deletions
@@ -17,6 +17,16 @@ for comments and testing. See tests/x509self.c and tests/x509signself.c. The latter also tests the new external signing callback interface. +** New errors GNUTLS_E_APPLICATION_ERROR_MIN..GNUTLS_E_APPLICATION_ERROR_MAX. +These two actually describe the outer limits of a range of error codes +reserved to the application. All of the errors are treated as fatal +by the library (it has to since it doesn't know the semantics of the +error codes). This can be useful in callbacks, to signal some +application-specific error condition, which will usually eventually +cause some gnutls API to return the same error code as the callback, +which then can be inspected by the application. Note that error codes +are negative. + ** gnutls_set_default_priority now disable TLS 1.2 by default. The RFC is not released yet, and we're approaching a major release so let's not enable it just yet. @@ -37,6 +47,8 @@ gnutls_sign_func: ADD, new type for sign callback. gnutls_sign_callback_set: ADD, new function to set sign callback. gnutls_sign_callback_get: ADD, new function to retrieve sign callback. gnutls_x509_privkey_sign_hash: ADD, new function useful in sign callback. +GNUTLS_E_APPLICATION_ERROR_MIN, +GNUTLS_E_APPLICATION_ERROR_MAX: ADD, new CPP #defines for error codes. * Version 1.7.16 (released 2007-08-07) diff --git a/includes/gnutls/gnutls.h.in b/includes/gnutls/gnutls.h.in index 9663092ad7..61b0b4d62d 100644 --- a/includes/gnutls/gnutls.h.in +++ b/includes/gnutls/gnutls.h.in @@ -1262,6 +1262,9 @@ extern "C" #define GNUTLS_E_UNIMPLEMENTED_FEATURE -1250 +#define GNUTLS_E_APPLICATION_ERROR_MAX -65000 +#define GNUTLS_E_APPLICATION_ERROR_MIN -65500 + #ifdef __cplusplus } #endif |