aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-06 09:44:45 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-06 09:44:45 +0200
commit11f3b0e684793740d180cfc5a19f45783c174219 (patch)
treef1d6db48cc1cedce80732f112c03a7b94dd3ccf9 /src
parentae1f87e37ae706a9ed84f996ed48b7a7fe2aa50b (diff)
downloadlibssh-11f3b0e684793740d180cfc5a19f45783c174219.tar.gz
libssh-11f3b0e684793740d180cfc5a19f45783c174219.tar.xz
libssh-11f3b0e684793740d180cfc5a19f45783c174219.zip
pki: Add missing ECC ifdef.
Diffstat (limited to 'src')
-rw-r--r--src/pki_crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 32ee13d1..fa476ca7 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -208,6 +208,7 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
break;
case SSH_KEYTYPE_ECDSA:
+#ifdef HAVE_OPENSSL_ECC
/* privkey -> pubkey */
if (demote && ssh_key_is_private(key)) {
const EC_POINT *p;
@@ -231,6 +232,7 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
new->ecdsa = EC_KEY_dup(key->ecdsa);
}
break;
+#endif
case SSH_KEYTYPE_UNKNOWN:
ssh_key_free(new);
return NULL;