summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-08-05 21:47:00 +0200
committerRichard Levitte <levitte@openssl.org>2017-08-15 14:26:12 +0200
commite1a4ff7678ef8fd2d67416f84a7408e826c7dccc (patch)
tree52aedb8e4dcdc1e81efc3628514af1fd36e18dfb /include
parent9237173eeba0a99de0d7a50f7b4a6149e983f866 (diff)
Add ERR_clear_last_mark()
This allows callers to set a mark, and then clear it without removing the errors. Useful in case an error is encountered that should be returned up the call stack. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4094)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/err.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/err.h b/include/openssl/err.h
index 8b266f9d5c..a602660c14 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -262,6 +262,7 @@ int ERR_get_next_error_library(void);
int ERR_set_mark(void);
int ERR_pop_to_mark(void);
+int ERR_clear_last_mark(void);
#ifdef __cplusplus
}