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.c | |
parent | bc5c5d01ad668981f9e554e62195383bc12e8528 (diff) | |
download | openssh-git-abe2b245b3ac6c4801e99bc0f13289cd28211e22.tar.gz |
prefer libcrypto chacha20-poly1305 where possible
Diffstat (limited to 'cipher-chachapoly.c')
-rw-r--r-- | cipher-chachapoly.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cipher-chachapoly.c b/cipher-chachapoly.c index 42e8d40b..132cdeec 100644 --- a/cipher-chachapoly.c +++ b/cipher-chachapoly.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> @@ -130,3 +132,5 @@ chachapoly_get_length(struct chachapoly_ctx *ctx, *plenp = PEEK_U32(buf); return 0; } + +#endif /* !defined(HAVE_EVP_CHACHA20) || defined(HAVE_BROKEN_CHACHA20) */ |