aboutsummaryrefslogtreecommitdiff
path: root/src/libmbedcrypto.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-12-16 13:32:42 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-12-19 14:57:29 +0100
commitdea6fe3d895d3ddfa23d67b07c3dccdbb2839366 (patch)
tree35b81c61107a81b6317e06146363f840de14f666 /src/libmbedcrypto.c
parent6cd8d4a24aa067d16611eb64bf306b7853748f34 (diff)
downloadlibssh-dea6fe3d895d3ddfa23d67b07c3dccdbb2839366.tar.gz
libssh-dea6fe3d895d3ddfa23d67b07c3dccdbb2839366.tar.xz
libssh-dea6fe3d895d3ddfa23d67b07c3dccdbb2839366.zip
crypto: Disable blowfish support by default
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/libmbedcrypto.c')
-rw-r--r--src/libmbedcrypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c
index 4b814598..d5945c27 100644
--- a/src/libmbedcrypto.c
+++ b/src/libmbedcrypto.c
@@ -951,6 +951,7 @@ static void cipher_cleanup(struct ssh_cipher_struct *cipher)
}
static struct ssh_cipher_struct ssh_ciphertab[] = {
+#ifdef WITH_BLOWFISH_CIPHER
{
.name = "blowfish-cbc",
.blocksize = 8,
@@ -962,6 +963,7 @@ static struct ssh_cipher_struct ssh_ciphertab[] = {
.decrypt = cipher_decrypt_cbc,
.cleanup = cipher_cleanup
},
+#endif /* WITH_BLOWFISH_CIPHER */
{
.name = "aes128-ctr",
.blocksize = 16,