diff options
author | Damien Miller <djm@google.com> | 2015-03-11 00:02:39 +0100 |
---|---|---|
committer | Damien Miller <djm@google.com> | 2015-03-11 00:02:39 +0100 |
commit | 4df590cf8dc799e8986268d62019b487a8ed63ad (patch) | |
tree | bd451328d0b41c1155a9721456ad01497c7c7bdf /regress/unittests/sshkey/test_sshkey.c | |
parent | upstream commit (diff) | |
download | openssh-4df590cf8dc799e8986268d62019b487a8ed63ad.tar.xz openssh-4df590cf8dc799e8986268d62019b487a8ed63ad.zip |
make unit tests work for !OPENSSH_HAS_ECC
Diffstat (limited to '')
-rw-r--r-- | regress/unittests/sshkey/test_sshkey.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/regress/unittests/sshkey/test_sshkey.c b/regress/unittests/sshkey/test_sshkey.c index b233a254b..ad10c9be2 100644 --- a/regress/unittests/sshkey/test_sshkey.c +++ b/regress/unittests/sshkey/test_sshkey.c @@ -19,7 +19,7 @@ #include <openssl/bn.h> #include <openssl/rsa.h> #include <openssl/dsa.h> -#ifdef OPENSSL_HAS_NISTP256 +#if defined(OPENSSL_HAS_ECC) && defined(OPENSSL_HAS_NISTP256) # include <openssl/ec.h> #endif @@ -174,7 +174,10 @@ get_private(const char *n) void sshkey_tests(void) { - struct sshkey *k1, *k2, *k3, *k4, *kr, *kd, *ke, *kf; + struct sshkey *k1, *k2, *k3, *k4, *kr, *kd, *kf; +#ifdef OPENSSL_HAS_ECC + struct sshkey *ke; +#endif struct sshbuf *b; TEST_START("new invalid"); |