From 0a131a053d6aad4b0d2f0c7670c1dfa889a43004 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 14 Nov 2017 10:34:32 +0100 Subject: [PATCH] Do not use the new API with the old OpenSSL --- tool/yubico-piv-tool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index 313b9e5..c1e4d7b 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -148,6 +148,7 @@ yk_ec_meth_sign(int type, const unsigned char *dgst, int dlen, return 1; } +#if OPENSSL_VERSION_NUMBER >= 10100000L static int wrap_public_key(ykpiv_state *state, int algorithm, EVP_PKEY *public_key, int key) @@ -171,6 +172,7 @@ wrap_public_key(ykpiv_state *state, int algorithm, EVP_PKEY *public_key, } return 0; } +#endif static bool generate_key(ykpiv_state *state, const char *slot, enum enum_algorithm algorithm, const char *output_file_name,