1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

pki: Add missing ECC ifdef.

This commit is contained in:
Andreas Schneider
2011-09-06 09:44:45 +02:00
parent ae1f87e37a
commit 11f3b0e684

View File

@@ -208,6 +208,7 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
break; break;
case SSH_KEYTYPE_ECDSA: case SSH_KEYTYPE_ECDSA:
#ifdef HAVE_OPENSSL_ECC
/* privkey -> pubkey */ /* privkey -> pubkey */
if (demote && ssh_key_is_private(key)) { if (demote && ssh_key_is_private(key)) {
const EC_POINT *p; 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); new->ecdsa = EC_KEY_dup(key->ecdsa);
} }
break; break;
#endif
case SSH_KEYTYPE_UNKNOWN: case SSH_KEYTYPE_UNKNOWN:
ssh_key_free(new); ssh_key_free(new);
return NULL; return NULL;