From 2efcf812b4c1555ca3aff744820a3b3bccd68298 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 21 Jan 2019 11:57:21 +1100 Subject: Fix -Wunused when compiling PKCS#11 without ECDSA --- ssh-pkcs11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c index 7dc828978..c4afac994 100644 --- a/ssh-pkcs11.c +++ b/ssh-pkcs11.c @@ -78,6 +78,7 @@ struct pkcs11_key { int pkcs11_interactive = 0; +#ifdef HAVE_EC_KEY_METHOD_NEW static void ossl_error(const char *msg) { @@ -87,6 +88,7 @@ ossl_error(const char *msg) error("%s: %s: %.100s", __func__, msg, ERR_error_string(e, NULL)); } +#endif /* HAVE_EC_KEY_METHOD_NEW */ int pkcs11_init(int interactive) -- cgit v1.2.3