Commit 18d4b8e1 authored by Rosen Penev's avatar Rosen Penev Committed by Facebook Github Bot

Add ChaCha20 compatibility macro (#1146)

Summary:
This can be used to check if ChaCha20 is available for use.
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>

related: https://github.com/facebookincubator/fizz/pull/27
Pull Request resolved: https://github.com/facebook/folly/pull/1146

Reviewed By: knekritz

Differential Revision: D15583706

Pulled By: yfeldblum

fbshipit-source-id: 1195d623098018992811cd7d6cef72e2366ace19
parent 6dad33c9
......@@ -90,6 +90,13 @@
#define FOLLY_OPENSSL_HAS_TLS13 0
#endif
#if FOLLY_OPENSSL_IS_110 && \
(!defined(OPENSSL_NO_CHACHA) || !defined(OPENSSL_NO_POLY1305))
#define FOLLY_OPENSSL_HAS_CHACHA 1
#else
#define FOLLY_OPENSSL_HAS_CHACHA 0
#endif
#if !FOLLY_OPENSSL_IS_110
#define OPENSSL_VERSION SSLEAY_VERSION
#define OpenSSL_version SSLeay_version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment