summaryrefslogtreecommitdiff
path: root/cipher-chachapoly-libcrypto.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-04-06 20:54:34 +1000
committerDarren Tucker <dtucker@dtucker.net>2020-04-06 20:54:34 +1000
commit8461a5b3db34ed0b5a4a18d82f64fd5ac8693ea8 (patch)
treee4c380a299384454104be00065d0486080489e66 /cipher-chachapoly-libcrypto.c
parent931c50c5883a9910ea1ae9a371e4e815ec56b035 (diff)
downloadopenssh-git-8461a5b3db34ed0b5a4a18d82f64fd5ac8693ea8.tar.gz
Include openssl-compat.h before checking ifdefs.
Fixes problem where unsuitable chacha20 code in libressl would be used unintentionally.
Diffstat (limited to 'cipher-chachapoly-libcrypto.c')
-rw-r--r--cipher-chachapoly-libcrypto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher-chachapoly-libcrypto.c b/cipher-chachapoly-libcrypto.c
index 2c0f80f2..76c24dcb 100644
--- a/cipher-chachapoly-libcrypto.c
+++ b/cipher-chachapoly-libcrypto.c
@@ -17,6 +17,9 @@
/* $OpenBSD: cipher-chachapoly-libcrypto.c,v 1.1 2020/04/03 04:32:21 djm Exp $ */
#include "includes.h"
+#ifdef WITH_OPENSSL
+#include "openbsd-compat/openssl-compat.h"
+#endif
#if defined(HAVE_EVP_CHACHA20) || !defined(HAVE_BROKEN_CHACHA20)