diff options
author | dtucker <dtucker> | 2014-07-18 21:23:55 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2014-07-18 21:23:55 +0000 |
commit | 64f2ac123893882bed59c0020aa5d24fdc10edfc (patch) | |
tree | 5d657131d0738ee96bd15e74bf5ae052e91aef2d | |
parent | 08efca2f639302b55fe28dbf1468aad8d916eb61 (diff) | |
download | openssh-64f2ac123893882bed59c0020aa5d24fdc10edfc.tar.gz |
- (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
-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 @@ 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. @@ -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) { @@ -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; |