summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordtucker <dtucker>2014-06-10 21:37:25 +0000
committerdtucker <dtucker>2014-06-10 21:37:25 +0000
commit93e00185bcfd962f6c48face08d904609b7f78c3 (patch)
tree62060c5cf90e061cdd28d6ee71a8e43982b6b0a5
parent3236795a72afc80c04fd6b35514b38e5d68eed75 (diff)
downloadopenssh-93e00185bcfd962f6c48face08d904609b7f78c3.tar.gz
- (dtucker) [myprosal.h] Don't include curve25519-sha256@libssh.org in
the proposal if the version of OpenSSL we're using doesn't support ECC.
-rw-r--r--ChangeLog2
-rw-r--r--myproposal.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a830e281..92adafcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
- (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256
curve tests if OpenSSL has them.
+ - (dtucker) [myprosal.h] Don't include curve25519-sha256@libssh.org in
+ the proposal if the version of OpenSSL we're using doesn't support ECC.
20140527
- (djm) [cipher.c] Fix merge botch.
diff --git a/myproposal.h b/myproposal.h
index 30cb20b4..d4298899 100644
--- a/myproposal.h
+++ b/myproposal.h
@@ -78,8 +78,13 @@
#endif
#ifdef WITH_OPENSSL
-#define KEX_SERVER_KEX \
- "curve25519-sha256@libssh.org," \
+# ifdef OPENSSL_HAS_ECC
+# define KEX_CURVE25519_METHODS "curve25519-sha256@libssh.org,"
+# else
+# define KEX_CURVE25519_METHODS ""
+# endif
+#define KEX_SERVER_KEX \
+ KEX_CURVE25519_METHODS \
KEX_ECDH_METHODS \
KEX_SHA256_METHODS \
"diffie-hellman-group14-sha1"