summaryrefslogtreecommitdiffstats
path: root/cipher-chachapoly.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-04-06 12:54:34 +0200
committerDarren Tucker <dtucker@dtucker.net>2020-04-06 12:54:34 +0200
commit8461a5b3db34ed0b5a4a18d82f64fd5ac8693ea8 (patch)
treee4c380a299384454104be00065d0486080489e66 /cipher-chachapoly.c
parentfix inverted test for LibreSSL version (diff)
downloadopenssh-8461a5b3db34ed0b5a4a18d82f64fd5ac8693ea8.tar.xz
openssh-8461a5b3db34ed0b5a4a18d82f64fd5ac8693ea8.zip
Include openssl-compat.h before checking ifdefs.
Fixes problem where unsuitable chacha20 code in libressl would be used unintentionally.
Diffstat (limited to '')
-rw-r--r--cipher-chachapoly.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher-chachapoly.c b/cipher-chachapoly.c
index 132cdeec9..716f8d426 100644
--- a/cipher-chachapoly.c
+++ b/cipher-chachapoly.c
@@ -17,6 +17,9 @@
/* $OpenBSD: cipher-chachapoly.c,v 1.9 2020/04/03 04:27:03 djm Exp $ */
#include "includes.h"
+#ifdef WITH_OPENSSL
+#include "openbsd-compat/openssl-compat.h"
+#endif
#if !defined(HAVE_EVP_CHACHA20) || defined(HAVE_BROKEN_CHACHA20)