]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Include openssl-compat.h before checking ifdefs.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 6 Apr 2020 10:54:34 +0000 (20:54 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 6 Apr 2020 10:54:34 +0000 (20:54 +1000)
Fixes problem where unsuitable chacha20 code in libressl would be used
unintentionally.

cipher-chachapoly-libcrypto.c
cipher-chachapoly.c

index 2c0f80f28ac2f2dbd1bc5d0d17f464391740a369..76c24dcbac068a1011bed447666954b88816b4a6 100644 (file)
@@ -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)
 
index 132cdeec908bd5d00d072a4311fdbac70b7d7902..716f8d426a068a1ae0598cec6022fa54a84e78c9 100644 (file)
@@ -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)