diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | key.c | 2 | ||||
-rw-r--r-- | sshkey.c | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -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 | ||
45 | 20140717 | 46 | 20140717 |
46 | - (djm) [digest-openssl.c] Preserve array order when disabling digests. | 47 | - (djm) [digest-openssl.c] Preserve array order when disabling digests. |
@@ -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) |
259 | int | 259 | int |
260 | key_ec_validate_public(const EC_GROUP *group, const EC_POINT *public) | 260 | key_ec_validate_public(const EC_GROUP *group, const EC_POINT *public) |
261 | { | 261 | { |
@@ -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; |