aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-05-09 08:55:49 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-05-09 08:56:10 +0200
commitf28748578d85721da6ea9fc054a31e2bbcb55b6a (patch)
tree232045f9c39a9b3f7114e86f66b415ade7ff2057
parent36f7d1a614d75f5cba5d207533ab55c64d94bb55 (diff)
downloadlibssh-f28748578d85721da6ea9fc054a31e2bbcb55b6a.tar.gz
libssh-f28748578d85721da6ea9fc054a31e2bbcb55b6a.tar.xz
libssh-f28748578d85721da6ea9fc054a31e2bbcb55b6a.zip
pki: Fix build without ECC support.
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--src/pki.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index 90c4ad5e..bbda1555 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -109,7 +109,12 @@ enum ssh_keytypes_e pki_privatekey_type_from_string(const char *privkey) {
*/
const char *ssh_pki_key_ecdsa_name(const ssh_key key)
{
+#ifdef HAVE_OPENSSL_ECC /* FIXME Better ECC check needed */
return pki_key_ecdsa_nid_to_name(key->ecdsa_nid);
+#else
+ (void) key; /* unused */
+ return NULL;
+#endif
}
/**