summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2016-02-13 14:20:43 -0500
committerRich Salz <rsalz@openssl.org>2016-03-08 14:46:17 -0500
commit040d43b3ff8daca32dd0f72155f668249506b51b (patch)
treec074fb38ae2fa87825901dd703a1d6d6cdddb69a /include
parentc7f1fa8ec0c022e5014ef45348e869f9d8781327 (diff)
OpenSSLDie --> OPENSSL_die
Also removed a bunch of unused define's from e_os.h Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/crypto.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h
index 41eac25a09..2969e2e61d 100644
--- a/include/openssl/crypto.h
+++ b/include/openssl/crypto.h
@@ -482,8 +482,12 @@ int CRYPTO_mem_leaks(struct bio_st *bio);
# endif
/* die if we have to */
-void OpenSSLDie(const char *file, int line, const char *assertion);
-# define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(OPENSSL_FILE, OPENSSL_LINE, #e),1))
+# if OPENSSL_API_COMPAT < 0x10100000L
+# define OpenSSLDie(f,l,a) OPENSSL_die((a),(f),(l))
+# endif
+void OPENSSL_die(const char *assertion, const char *file, int line);
+# define OPENSSL_assert(e) \
+ (void)((e) ? 0 : (OPENSSL_die("assertion failed: " #e, OPENSSL_FILE, OPENSSL_LINE), 1))
unsigned int *OPENSSL_ia32cap_loc(void);
# define OPENSSL_ia32cap ((OPENSSL_ia32cap_loc())[0])