check if chacha20 and poly1305 is presented in openssl build

This commit is contained in:
orignal 2019-01-06 17:43:05 -05:00
parent 3f091f4748
commit f74b27c58c
6 changed files with 47 additions and 45 deletions

View file

@ -30,6 +30,9 @@
# define OPENSSL_X25519 1
# define OPENSSL_SIPHASH 1
# endif
# if !defined OPENSSL_NO_CHACHA && !defined OPENSSL_NO_POLY1305 // some builds might not include them
# define OPENSSL_AEAD_CHACHA20_POLY1305 1
# endif
#endif
namespace i2p