mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-07 08:02:55 +03:00
kex: Add support for ecdsa hostkeys.
This commit is contained in:
@@ -66,15 +66,17 @@
|
|||||||
|
|
||||||
#ifdef HAVE_ECDH
|
#ifdef HAVE_ECDH
|
||||||
#define KEY_EXCHANGE "ecdh-sha2-nistp256,diffie-hellman-group1-sha1"
|
#define KEY_EXCHANGE "ecdh-sha2-nistp256,diffie-hellman-group1-sha1"
|
||||||
|
#define HOSTKEYS "ecdsa-sha2-nistp256,ssh-rsa,ssh-dss"
|
||||||
#else
|
#else
|
||||||
#define KEY_EXCHANGE "diffie-hellman-group1-sha1"
|
#define KEY_EXCHANGE "diffie-hellman-group1-sha1"
|
||||||
|
#define HOSTKEYS "ssh-rsa,ssh-dss"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define KEX_METHODS_SIZE 10
|
#define KEX_METHODS_SIZE 10
|
||||||
|
|
||||||
static const char *default_methods[] = {
|
static const char *default_methods[] = {
|
||||||
KEY_EXCHANGE,
|
KEY_EXCHANGE,
|
||||||
"ssh-rsa,ssh-dss",
|
HOSTKEYS,
|
||||||
AES BLOWFISH DES,
|
AES BLOWFISH DES,
|
||||||
AES BLOWFISH DES,
|
AES BLOWFISH DES,
|
||||||
"hmac-sha1",
|
"hmac-sha1",
|
||||||
@@ -88,7 +90,7 @@ static const char *default_methods[] = {
|
|||||||
|
|
||||||
const char *supported_methods[] = {
|
const char *supported_methods[] = {
|
||||||
KEY_EXCHANGE,
|
KEY_EXCHANGE,
|
||||||
"ssh-rsa,ssh-dss",
|
HOSTKEYS,
|
||||||
AES BLOWFISH DES,
|
AES BLOWFISH DES,
|
||||||
AES BLOWFISH DES,
|
AES BLOWFISH DES,
|
||||||
"hmac-sha1",
|
"hmac-sha1",
|
||||||
|
Reference in New Issue
Block a user