]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix -Wunused when compiling PKCS#11 without ECDSA
authorDamien Miller <djm@mindrot.org>
Mon, 21 Jan 2019 00:57:21 +0000 (11:57 +1100)
committerDamien Miller <djm@mindrot.org>
Mon, 21 Jan 2019 00:57:21 +0000 (11:57 +1100)
ssh-pkcs11.c

index 7dc828978f34aadabf4835bd061055df637cc739..c4afac994cd117fde91c35fd7240295a1bce3332 100644 (file)
@@ -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)