From abe2b245b3ac6c4801e99bc0f13289cd28211e22 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 3 Apr 2020 17:25:46 +1100 Subject: prefer libcrypto chacha20-poly1305 where possible --- openbsd-compat/openssl-compat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsd-compat/openssl-compat.h') diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h index abdcb8763..bcefd8f28 100644 --- a/openbsd-compat/openssl-compat.h +++ b/openbsd-compat/openssl-compat.h @@ -62,6 +62,12 @@ void ssh_libcrypto_init(void); # define OPENSSL_DSA_MAX_MODULUS_BITS 10000 #endif +#ifdef LIBRESSL_VERSION_NUMBER +# if LIBRESSL_VERSION_NUMBER >= 0x3010000fL +# define HAVE_BROKEN_CHACHA20 +# endif +#endif + #ifndef OPENSSL_HAVE_EVPCTR # define EVP_aes_128_ctr evp_aes_128_ctr # define EVP_aes_192_ctr evp_aes_128_ctr -- cgit v1.2.3