aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/openssl_config.h
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-15 12:14:36 +0100
committerHans Nilsson <[email protected]>2019-03-15 18:01:29 +0100
commit98e5f741c8305b9549b236c4f2583343cc422d7e (patch)
treea7fb98628cb9e302887d456908c2d8e4047eb772 /lib/crypto/c_src/openssl_config.h
parent80f103c64904b29e2f3d880148dd5b032cae0c02 (diff)
downloadotp-98e5f741c8305b9549b236c4f2583343cc422d7e.tar.gz
otp-98e5f741c8305b9549b236c4f2583343cc422d7e.tar.bz2
otp-98e5f741c8305b9549b236c4f2583343cc422d7e.zip
crypto: Disable chacha20 if OpenSSL 1.1.0-1.1.0c
due to a bug. The cipher first appeared in 1.1.0
Diffstat (limited to 'lib/crypto/c_src/openssl_config.h')
-rw-r--r--lib/crypto/c_src/openssl_config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h
index 45144a0c25..1c138e3bd1 100644
--- a/lib/crypto/c_src/openssl_config.h
+++ b/lib/crypto/c_src/openssl_config.h
@@ -203,12 +203,17 @@
#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(1,1,0)
# ifndef HAS_LIBRESSL
-# define HAVE_CHACHA20
# define HAVE_CHACHA20_POLY1305
# define HAVE_RSA_OAEP_MD
# endif
#endif
+#if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION(1,1,0,'d')
+# ifndef HAS_LIBRESSL
+# define HAVE_CHACHA20
+# endif
+#endif
+
// OPENSSL_VERSION_NUMBER >= 1.1.1-pre8
#if OPENSSL_VERSION_NUMBER >= (PACKED_OPENSSL_VERSION_PLAIN(1,1,1)-7)
# ifndef HAS_LIBRESSL