diff options
author | Richard Levitte <levitte@openssl.org> | 2003-06-11 20:49:58 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-06-11 20:49:58 +0000 |
commit | 54f64516703cb090758369351a84e3df76868799 (patch) | |
tree | 9a03de66b753e87a3d1fca820d6de79416d96d76 /crypto/err/err.h | |
parent | 490967195a57553c2a8f6606d2a34f86d80b0257 (diff) | |
download | openssl-54f64516703cb090758369351a84e3df76868799.tar.gz |
Add functionality to set marks on the error stack and to pop all errors to the next mark.
Diffstat (limited to 'crypto/err/err.h')
-rw-r--r-- | crypto/err/err.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/err/err.h b/crypto/err/err.h index 08838190fd..1228acfe5c 100644 --- a/crypto/err/err.h +++ b/crypto/err/err.h @@ -88,10 +88,13 @@ extern "C" { #define ERR_TXT_MALLOCED 0x01 #define ERR_TXT_STRING 0x02 +#define ERR_FLAG_MARK 0x01 + #define ERR_NUM_ERRORS 16 typedef struct err_state_st { unsigned long pid; + int err_flags[ERR_NUM_ERRORS]; unsigned long err_buffer[ERR_NUM_ERRORS]; char *err_data[ERR_NUM_ERRORS]; int err_data_flags[ERR_NUM_ERRORS]; @@ -294,6 +297,9 @@ LHASH *ERR_get_err_state_table(void); int ERR_get_next_error_library(void); +int ERR_set_mark(void); +int ERR_pop_to_mark(void); + /* This opaque type encapsulates the low-level error-state functions */ typedef struct st_ERR_FNS ERR_FNS; /* An application can use this function and provide the return value to loaded |