diff options
author | Doug Hogan <[email protected]> | 2019-01-03 20:29:14 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2019-01-08 01:11:11 -0800 |
commit | f46401d46f9ed331ff2a09bb6a99376707083c96 (patch) | |
tree | a8f651f079964a3fed2d31db2ed53971130a7d82 /lib/crypto/c_src/openssl_config.h | |
parent | 0367ea0bc6953ec81f6d86e2d66e3411348abac9 (diff) | |
download | otp-f46401d46f9ed331ff2a09bb6a99376707083c96.tar.gz otp-f46401d46f9ed331ff2a09bb6a99376707083c96.tar.bz2 otp-f46401d46f9ed331ff2a09bb6a99376707083c96.zip |
Revamp initialize()
* Add error handling for all OpenSSL calls.
- However, disable custom crypto mem functions for LibreSSL
since it has never supported it.
Diffstat (limited to 'lib/crypto/c_src/openssl_config.h')
-rw-r--r-- | lib/crypto/c_src/openssl_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h index 2e5f5b22c1..e41d0c945e 100644 --- a/lib/crypto/c_src/openssl_config.h +++ b/lib/crypto/c_src/openssl_config.h @@ -89,6 +89,11 @@ # undef FIPS_SUPPORT # endif +/* LibreSSL has never supported the custom mem functions */ +#ifndef HAS_LIBRESSL +# define HAS_CRYPTO_MEM_FUNCTIONS +#endif + # if LIBRESSL_VERSION_NUMBER < PACKED_OPENSSL_VERSION_PLAIN(2,7,0) /* LibreSSL wants the 1.0.1 API */ # define NEED_EVP_COMPATIBILITY_FUNCTIONS |