summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 156cbc729..85392699d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,7 @@
41 in servconf.h. 41 in servconf.h.
42 - (dtucker) [Makefile.in] Add a t-exec target to run just the executable 42 - (dtucker) [Makefile.in] Add a t-exec target to run just the executable
43 tests. 43 tests.
44 - (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
44 45
4520140717 4620140717
46 - (djm) [digest-openssl.c] Preserve array order when disabling digests. 47 - (djm) [digest-openssl.c] Preserve array order when disabling digests.
diff --git a/key.c b/key.c
index a8532061a..84bbeae38 100644
--- a/key.c
+++ b/key.c
@@ -255,7 +255,7 @@ key_cert_check_authority(const Key *k, int want_host, int require_principal,
255 return 0; 255 return 0;
256} 256}
257 257
258#ifdef WITH_OPENSSL 258#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
259int 259int
260key_ec_validate_public(const EC_GROUP *group, const EC_POINT *public) 260key_ec_validate_public(const EC_GROUP *group, const EC_POINT *public)
261{ 261{
diff --git a/sshkey.c b/sshkey.c
index f957b061f..14110cdad 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -762,6 +762,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
762 (ret = sshbuf_put_bignum2(b, key->dsa->pub_key)) != 0) 762 (ret = sshbuf_put_bignum2(b, key->dsa->pub_key)) != 0)
763 return ret; 763 return ret;
764 break; 764 break;
765# ifdef OPENSSL_HAS_ECC
765 case KEY_ECDSA: 766 case KEY_ECDSA:
766 if (key->ecdsa == NULL) 767 if (key->ecdsa == NULL)
767 return SSH_ERR_INVALID_ARGUMENT; 768 return SSH_ERR_INVALID_ARGUMENT;
@@ -771,6 +772,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
771 (ret = sshbuf_put_eckey(b, key->ecdsa)) != 0) 772 (ret = sshbuf_put_eckey(b, key->ecdsa)) != 0)
772 return ret; 773 return ret;
773 break; 774 break;
775# endif
774 case KEY_RSA: 776 case KEY_RSA:
775 if (key->rsa == NULL) 777 if (key->rsa == NULL)
776 return SSH_ERR_INVALID_ARGUMENT; 778 return SSH_ERR_INVALID_ARGUMENT;