mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-21 19:31:17 +03:00
kex: disable des-cbc-ssh1 by default
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
b235c380f2
commit
7febad5821
10
src/kex.c
10
src/kex.c
@@ -40,7 +40,8 @@
|
|||||||
#ifdef HAVE_LIBGCRYPT
|
#ifdef HAVE_LIBGCRYPT
|
||||||
# define BLOWFISH "blowfish-cbc,"
|
# define BLOWFISH "blowfish-cbc,"
|
||||||
# define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
|
# define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
|
||||||
# define DES "3des-cbc,des-cbc-ssh1"
|
# define DES "3des-cbc"
|
||||||
|
# define DES_SUPPORTED "3des-cbc,des-cbc-ssh1"
|
||||||
#elif defined(HAVE_LIBCRYPTO)
|
#elif defined(HAVE_LIBCRYPTO)
|
||||||
# ifdef HAVE_OPENSSL_BLOWFISH_H
|
# ifdef HAVE_OPENSSL_BLOWFISH_H
|
||||||
# define BLOWFISH "blowfish-cbc,"
|
# define BLOWFISH "blowfish-cbc,"
|
||||||
@@ -56,7 +57,8 @@
|
|||||||
# else
|
# else
|
||||||
# define AES ""
|
# define AES ""
|
||||||
# endif
|
# endif
|
||||||
# define DES "3des-cbc,des-cbc-ssh1"
|
# define DES "3des-cbc"
|
||||||
|
# define DES_SUPPORTED "3des-cbc,des-cbc-ssh1"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_ZLIB
|
#ifdef WITH_ZLIB
|
||||||
@@ -101,8 +103,8 @@ static const char *default_methods[] = {
|
|||||||
static const char *supported_methods[] = {
|
static const char *supported_methods[] = {
|
||||||
KEY_EXCHANGE,
|
KEY_EXCHANGE,
|
||||||
HOSTKEYS,
|
HOSTKEYS,
|
||||||
AES BLOWFISH DES,
|
AES BLOWFISH DES_SUPPORTED,
|
||||||
AES BLOWFISH DES,
|
AES BLOWFISH DES_SUPPORTED,
|
||||||
"hmac-sha1,hmac-sha2-256,hmac-sha2-512",
|
"hmac-sha1,hmac-sha2-256,hmac-sha2-512",
|
||||||
"hmac-sha1,hmac-sha2-256,hmac-sha2-512",
|
"hmac-sha1,hmac-sha2-256,hmac-sha2-512",
|
||||||
ZLIB,
|
ZLIB,
|
||||||
|
|||||||
Reference in New Issue
Block a user