diff --git a/src/kex.c b/src/kex.c index 8e67501b..7d17317d 100644 --- a/src/kex.c +++ b/src/kex.c @@ -99,7 +99,7 @@ #define CURVE25519 "" #endif /* HAVE_CURVE25519 */ -#ifdef HAVE_ECDH +#ifdef HAVE_ECC #define ECDH "ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521," #define EC_HOSTKEYS "ecdsa-sha2-nistp521," \ "ecdsa-sha2-nistp384," \ @@ -111,12 +111,12 @@ #define EC_PUBLIC_KEY_ALGORITHMS EC_FIPS_PUBLIC_KEY_ALGOS \ "sk-ecdsa-sha2-nistp256-cert-v01@openssh.com," #else +#define ECDH "" #define EC_HOSTKEYS "" #define EC_SK_HOSTKEYS "" #define EC_FIPS_PUBLIC_KEY_ALGOS "" #define EC_PUBLIC_KEY_ALGORITHMS "" -#define ECDH "" -#endif /* HAVE_ECDH */ +#endif /* HAVE_ECC */ #ifdef HAVE_DSA #define DSA_HOSTKEYS ",ssh-dss" diff --git a/src/knownhosts.c b/src/knownhosts.c index d179d3f4..9f978096 100644 --- a/src/knownhosts.c +++ b/src/knownhosts.c @@ -489,7 +489,7 @@ static const char *ssh_known_host_sigs_from_hostkey_type(enum ssh_keytypes_e typ SSH_LOG(SSH_LOG_WARN, "DSS keys are not supported by this build"); break; #endif -#ifdef HAVE_ECDH +#ifdef HAVE_ECC case SSH_KEYTYPE_ECDSA_P256: return "ecdsa-sha2-nistp256"; case SSH_KEYTYPE_ECDSA_P384: