summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2020-04-03 08:25:46 +0200
committerDamien Miller <djm@mindrot.org>2020-04-03 08:26:29 +0200
commitabe2b245b3ac6c4801e99bc0f13289cd28211e22 (patch)
treea7ab8d83b19e7d2d7d4348391a0700b34e8fc2ce /openbsd-compat
parentupstream: Temporarily remove tests for '%C' since the hash contains the (diff)
downloadopenssh-abe2b245b3ac6c4801e99bc0f13289cd28211e22.tar.xz
openssh-abe2b245b3ac6c4801e99bc0f13289cd28211e22.zip
prefer libcrypto chacha20-poly1305 where possible
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/openssl-compat.h6
1 files changed, 6 insertions, 0 deletions
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