aboutsummaryrefslogtreecommitdiff
path: root/src/pki_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki_crypto.c')
-rw-r--r--src/pki_crypto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index e676321..0e54a38 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -403,6 +403,7 @@ int pki_key_generate_dss(ssh_key key, int parameter){
return SSH_OK;
}
+#ifdef HAVE_OPENSSL_ECC
int pki_key_generate_ecdsa(ssh_key key, int parameter) {
int nid;
int ok;
@@ -436,6 +437,7 @@ int pki_key_generate_ecdsa(ssh_key key, int parameter) {
return SSH_OK;
}
+#endif
int pki_key_compare(const ssh_key k1,
const ssh_key k2,
@@ -654,7 +656,9 @@ fail:
ssh_key_free(key);
DSA_free(dsa);
RSA_free(rsa);
+#ifdef HAVE_OPENSSL_ECC
EC_KEY_free(ecdsa);
+#endif
return NULL;
}