diff options
author | Damien Miller <djm@mindrot.org> | 2020-04-03 17:25:46 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-04-03 17:26:29 +1100 |
commit | abe2b245b3ac6c4801e99bc0f13289cd28211e22 (patch) | |
tree | a7ab8d83b19e7d2d7d4348391a0700b34e8fc2ce /cipher-chachapoly-libcrypto.c | |
parent | bc5c5d01ad668981f9e554e62195383bc12e8528 (diff) |
prefer libcrypto chacha20-poly1305 where possible
Diffstat (limited to 'cipher-chachapoly-libcrypto.c')
-rw-r--r-- | cipher-chachapoly-libcrypto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher-chachapoly-libcrypto.c b/cipher-chachapoly-libcrypto.c index 960ac14c..2c0f80f2 100644 --- a/cipher-chachapoly-libcrypto.c +++ b/cipher-chachapoly-libcrypto.c @@ -18,6 +18,8 @@ #include "includes.h" +#if defined(HAVE_EVP_CHACHA20) || !defined(HAVE_BROKEN_CHACHA20) + #include <sys/types.h> #include <stdarg.h> /* needed for log.h */ #include <string.h> @@ -158,3 +160,4 @@ chachapoly_get_length(struct chachapoly_ctx *ctx, *plenp = PEEK_U32(buf); return 0; } +#endif /* defined(HAVE_EVP_CHACHA20) && !defined(HAVE_BROKEN_CHACHA20) */ |