1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

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>
This commit is contained in:
Jon Simons
2018-06-08 16:18:06 -07:00
committed by Andreas Schneider
parent c8d6445d44
commit c089b700c6
4 changed files with 16 additions and 2 deletions

View File

@ -138,7 +138,8 @@ endif ()
if (NOT WITH_MBEDTLS)
set(HAVE_DSA 1)
endif()
set(HAVE_CHACHA 1)
endif (NOT WITH_MBEDTLS)
# FUNCTIONS