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 /ConfigureChecks.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 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index fd8ff136..3bb4a5e0 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -138,7 +138,8 @@ endif () if (NOT WITH_MBEDTLS) set(HAVE_DSA 1) -endif() + set(HAVE_CHACHA 1) +endif (NOT WITH_MBEDTLS) # FUNCTIONS |