aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-05-03 16:52:45 +0200
committerHans Nilsson <[email protected]>2018-05-04 12:56:00 +0200
commit7f58c389fe626389e0a2c572dbe930e86694b257 (patch)
tree8ba705a5240d8a25c6806c410c802466b95b8b0a /lib/crypto
parentb5b627ded69445c06e8fbe34cda3421854c5582e (diff)
downloadotp-7f58c389fe626389e0a2c572dbe930e86694b257.tar.gz
otp-7f58c389fe626389e0a2c572dbe930e86694b257.tar.bz2
otp-7f58c389fe626389e0a2c572dbe930e86694b257.zip
crypto: Fix compilation for LibreSSL 2.7.x
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/c_src/crypto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 9a3ea07c97..4e045179a1 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -102,8 +102,10 @@
# undef FIPS_SUPPORT
# endif
+# if LIBRESSL_VERSION_NUMBER < PACKED_OPENSSL_VERSION_PLAIN(2,7,0)
/* LibreSSL wants the 1.0.1 API */
# define NEED_EVP_COMPATIBILITY_FUNCTIONS
+# endif
#endif
@@ -112,8 +114,10 @@
#endif
-#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,0,0)
-# define HAS_EVP_PKEY_CTX
+#ifndef HAS_LIBRESSL
+# if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,0,0)
+# define HAS_EVP_PKEY_CTX
+# endif
#endif