aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/pk_algs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/pk_algs.cpp')
-rw-r--r--src/lib/pubkey/pk_algs.cpp6
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>();
}