From 83633d539e11bbdcc4e3f2c1333b9770ccf30227 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 9 May 2014 08:55:49 +0200 Subject: [PATCH] pki: Fix build without ECC support. Signed-off-by: Andreas Schneider --- src/pki.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pki.c b/src/pki.c index 10621fc6..c64f0ec9 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 } /**