summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-05-01 09:21:52 +1000
committerDarren Tucker <dtucker@dtucker.net>2020-05-01 09:21:52 +1000
commitd27cba58c972d101a5de976777e518f34ac779cb (patch)
tree670b3c99133530d881d2f57ecc78e3518a300c87
parent20819b962dc1467cd6fad5486a7020c850efdbee (diff)
Fix conditional for openssl-based chacha20.
Fixes warnings or link errors when building against older OpenSSLs. ok djm
-rw-r--r--cipher-chachapoly-libcrypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher-chachapoly-libcrypto.c b/cipher-chachapoly-libcrypto.c
index 76c24dcb..719f9c84 100644
--- a/cipher-chachapoly-libcrypto.c
+++ b/cipher-chachapoly-libcrypto.c
@@ -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 */