]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix conditional for openssl-based chacha20.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 30 Apr 2020 23:21:52 +0000 (09:21 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 30 Apr 2020 23:21:52 +0000 (09:21 +1000)
Fixes warnings or link errors when building against older OpenSSLs.
ok djm

cipher-chachapoly-libcrypto.c

index 76c24dcbac068a1011bed447666954b88816b4a6..719f9c843d63f007d08cfdd744d08a7ed5007d17 100644 (file)
@@ -21,7 +21,7 @@
 #include "openbsd-compat/openssl-compat.h"
 #endif
 
-#if defined(HAVE_EVP_CHACHA20) || !defined(HAVE_BROKEN_CHACHA20)
+#if defined(HAVE_EVP_CHACHA20) && !defined(HAVE_BROKEN_CHACHA20)
 
 #include <sys/types.h>
 #include <stdarg.h> /* needed for log.h */