summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kaduk <bkaduk@akamai.com>2016-12-08 12:01:31 -0600
committerRich Salz <rsalz@openssl.org>2016-12-12 08:24:26 -0500
commit5c75e43d84ca6a56adba5bab37b868576ff8b209 (patch)
treeb2752804969d79bb1c00646c7fe680982d1aba1f /include
parent550e1d07a69db5af9129533ba7983594b3ed3fec (diff)
Restore the ERR_FATAL_ERROR() macro
Commit 0cd0a820abc6124cf8e176fa92d620a2abf9e419 removed this macro along with many unused function and reason codes; ERR_FATAL_ERROR() was not used in the tree, but did have external consumers. Add it back to restore the API compatibility and avoid breaking applications for no internal benefit. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2049) (cherry picked from commit 036ba500f7886ca2e7231549fa574ec2cdd45cef)
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 f9390919ab..904cf3a59e 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -140,6 +140,7 @@ typedef struct err_state_st {
# define ERR_GET_LIB(l) (int)(((l) >> 24L) & 0x0FFL)
# define ERR_GET_FUNC(l) (int)(((l) >> 12L) & 0xFFFL)
# define ERR_GET_REASON(l) (int)( (l) & 0xFFFL)
+# define ERR_FATAL_ERROR(l) (int)( (l) & ERR_R_FATAL)
/* OS functions */
# define SYS_F_FOPEN 1