diff options
author | Jon Simons <jon@jonsimons.org> | 2018-06-08 16:18:06 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-28 09:06:30 +0200 |
commit | c089b700c677de107bebc44c5f5daf30d44a84ba (patch) | |
tree | 05d5149958bf63012b8f4a144efb37017a8bbeca /config.h.cmake | |
parent | c8d6445d44f239b6dc2c9261dc796bf06c800ec1 (diff) | |
download | libssh-c089b700c677de107bebc44c5f5daf30d44a84ba.tar.gz libssh-c089b700c677de107bebc44c5f5daf30d44a84ba.tar.xz libssh-c089b700c677de107bebc44c5f5daf30d44a84ba.zip |
chacha: fix build for mbedTLS
Fix the build for mbedTLS:
* set HAVE_CHACHA for non-mbedTLS builds
* only compile chachapoly.c when HAVE_CHACHA
* use empty CHACHA20 in src/kex.c unless HAVE_CHACHA
Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake index 61d20acb..044e6032 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -89,6 +89,9 @@ /* Define to 1 if you have DSA */ #cmakedefine HAVE_DSA 1 +/* Define to 1 if you have chacha20-poly1305 */ +#cmakedefine HAVE_CHACHA 1 + /*************************** FUNCTIONS ***************************/ /* Define to 1 if you have the `EVP_aes128_ctr' function. */ |