summaryrefslogtreecommitdiff
path: root/ssh-pkcs11.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-01-21 11:57:21 +1100
committerDamien Miller <djm@mindrot.org>2019-01-21 11:57:21 +1100
commit2efcf812b4c1555ca3aff744820a3b3bccd68298 (patch)
treeca103b692c7f198d50edce9caed13f99b443a49b /ssh-pkcs11.c
parent3c0c657ed7cd335fc05c0852d88232ca7e92a5d9 (diff)
Fix -Wunused when compiling PKCS#11 without ECDSA
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r--ssh-pkcs11.c2
1 files changed, 2 insertions, 0 deletions
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 {
78 78
79int pkcs11_interactive = 0; 79int pkcs11_interactive = 0;
80 80
81#ifdef HAVE_EC_KEY_METHOD_NEW
81static void 82static void
82ossl_error(const char *msg) 83ossl_error(const char *msg)
83{ 84{
@@ -87,6 +88,7 @@ ossl_error(const char *msg)
87 error("%s: %s: %.100s", __func__, msg, 88 error("%s: %s: %.100s", __func__, msg,
88 ERR_error_string(e, NULL)); 89 ERR_error_string(e, NULL));
89} 90}
91#endif /* HAVE_EC_KEY_METHOD_NEW */
90 92
91int 93int
92pkcs11_init(int interactive) 94pkcs11_init(int interactive)