diff options
author | Jack Lloyd <[email protected]> | 2017-12-24 14:58:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-24 14:58:32 -0500 |
commit | 010fc707ebe4ba8c9d11ff55ddaefe03e4dd5c33 (patch) | |
tree | 1d72ee140d6104726b1fce633d22c22aac5a751d | |
parent | 05beeb3d970c5c9d3ce975e6b286ae2568ee2c48 (diff) |
Avoid warnings about unused params in minimal builds [ci skip]
-rw-r--r-- | src/lib/pubkey/pk_algs.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/pubkey/pk_algs.cpp b/src/lib/pubkey/pk_algs.cpp index d34c59ccf..89ef7c708 100644 --- a/src/lib/pubkey/pk_algs.cpp +++ b/src/lib/pubkey/pk_algs.cpp @@ -249,6 +249,8 @@ load_private_key(const AlgorithmIdentifier& alg_id, throw Decoding_Error("Unhandled PK algorithm " + alg_name); } +#if defined(BOTAN_HAS_ECC_GROUP) + namespace { std::string default_ec_group_for(const std::string& alg_name) @@ -265,6 +267,8 @@ std::string default_ec_group_for(const std::string& alg_name) } +#endif + std::unique_ptr<Private_Key> create_private_key(const std::string& alg_name, RandomNumberGenerator& rng, @@ -401,7 +405,7 @@ create_private_key(const std::string& alg_name, } #endif - BOTAN_UNUSED(alg_name, rng, provider); + BOTAN_UNUSED(alg_name, rng, params, provider); return std::unique_ptr<Private_Key>(); } |