1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

Do not build in internal chacha implementation if gcrypt supports that

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2020-01-15 11:03:52 +01:00
parent 8670fb101b
commit 94fe7634e1

View File

@@ -135,9 +135,6 @@ set(libssh_SRCS
wrapper.c
external/bcrypt_pbkdf.c
external/blowfish.c
external/chacha.c
external/poly1305.c
chachapoly.c
config_parser.c
token.c
pki_ed25519_common.c
@@ -183,6 +180,14 @@ if (WITH_GCRYPT)
external/ge25519.c
external/sc25519.c
)
if (NOT HAVE_GCRYPT_CHACHA_POLY)
set(libssh_SRCS
${libssh_SRCS}
external/chacha.c
external/poly1305.c
chachapoly.c
)
endif (NOT HAVE_GCRYPT_CHACHA_POLY)
elseif (WITH_MBEDTLS)
set(libssh_SRCS
${libssh_SRCS}
@@ -197,6 +202,9 @@ elseif (WITH_MBEDTLS)
external/fe25519.c
external/ge25519.c
external/sc25519.c
external/chacha.c
external/poly1305.c
chachapoly.c
)
else (WITH_GCRYPT)
set(libssh_SRCS
@@ -206,6 +214,9 @@ else (WITH_GCRYPT)
ecdh_crypto.c
libcrypto.c
dh_crypto.c
external/chacha.c
external/poly1305.c
chachapoly.c
)
if (NOT HAVE_OPENSSL_ED25519)
set(libssh_SRCS