summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordtucker <dtucker>2014-07-18 21:23:55 +0000
committerdtucker <dtucker>2014-07-18 21:23:55 +0000
commit64f2ac123893882bed59c0020aa5d24fdc10edfc (patch)
tree5d657131d0738ee96bd15e74bf5ae052e91aef2d
parent08efca2f639302b55fe28dbf1468aad8d916eb61 (diff)
downloadopenssh-64f2ac123893882bed59c0020aa5d24fdc10edfc.tar.gz
- (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
-rw-r--r--ChangeLog1
-rw-r--r--key.c2
-rw-r--r--sshkey.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 156cbc72..85392699 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,7 @@
in servconf.h.
- (dtucker) [Makefile.in] Add a t-exec target to run just the executable
tests.
+ - (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
20140717
- (djm) [digest-openssl.c] Preserve array order when disabling digests.
diff --git a/key.c b/key.c
index a8532061..84bbeae3 100644
--- a/key.c
+++ b/key.c
@@ -255,7 +255,7 @@ key_cert_check_authority(const Key *k, int want_host, int require_principal,
return 0;
}
-#ifdef WITH_OPENSSL
+#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
int
key_ec_validate_public(const EC_GROUP *group, const EC_POINT *public)
{
diff --git a/sshkey.c b/sshkey.c
index f957b061..14110cda 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -762,6 +762,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
(ret = sshbuf_put_bignum2(b, key->dsa->pub_key)) != 0)
return ret;
break;
+# ifdef OPENSSL_HAS_ECC
case KEY_ECDSA:
if (key->ecdsa == NULL)
return SSH_ERR_INVALID_ARGUMENT;
@@ -771,6 +772,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
(ret = sshbuf_put_eckey(b, key->ecdsa)) != 0)
return ret;
break;
+# endif
case KEY_RSA:
if (key->rsa == NULL)
return SSH_ERR_INVALID_ARGUMENT;