diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-05-01 09:21:52 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-05-01 09:21:52 +1000 |
commit | d27cba58c972d101a5de976777e518f34ac779cb (patch) | |
tree | 670b3c99133530d881d2f57ecc78e3518a300c87 /cipher-chachapoly-libcrypto.c | |
parent | 20819b962dc1467cd6fad5486a7020c850efdbee (diff) |
Fix conditional for openssl-based chacha20.
Fixes warnings or link errors when building against older OpenSSLs.
ok djm
Diffstat (limited to 'cipher-chachapoly-libcrypto.c')
-rw-r--r-- | cipher-chachapoly-libcrypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher-chachapoly-libcrypto.c b/cipher-chachapoly-libcrypto.c index 76c24dcba..719f9c843 100644 --- a/cipher-chachapoly-libcrypto.c +++ b/cipher-chachapoly-libcrypto.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "openbsd-compat/openssl-compat.h" | 21 | #include "openbsd-compat/openssl-compat.h" |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #if defined(HAVE_EVP_CHACHA20) || !defined(HAVE_BROKEN_CHACHA20) | 24 | #if defined(HAVE_EVP_CHACHA20) && !defined(HAVE_BROKEN_CHACHA20) |
25 | 25 | ||
26 | #include <sys/types.h> | 26 | #include <sys/types.h> |
27 | #include <stdarg.h> /* needed for log.h */ | 27 | #include <stdarg.h> /* needed for log.h */ |