diff options
author | Damien Miller <djm@mindrot.org> | 2019-01-21 11:57:21 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-01-21 11:57:21 +1100 |
commit | 2efcf812b4c1555ca3aff744820a3b3bccd68298 (patch) | |
tree | ca103b692c7f198d50edce9caed13f99b443a49b | |
parent | 3c0c657ed7cd335fc05c0852d88232ca7e92a5d9 (diff) |
Fix -Wunused when compiling PKCS#11 without ECDSA
-rw-r--r-- | ssh-pkcs11.c | 2 |
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 | ||
79 | int pkcs11_interactive = 0; | 79 | int pkcs11_interactive = 0; |
80 | 80 | ||
81 | #ifdef HAVE_EC_KEY_METHOD_NEW | ||
81 | static void | 82 | static void |
82 | ossl_error(const char *msg) | 83 | ossl_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 | ||
91 | int | 93 | int |
92 | pkcs11_init(int interactive) | 94 | pkcs11_init(int interactive) |