diff options
Diffstat (limited to 'src/cli/pubkey.cpp')
-rw-r--r-- | src/cli/pubkey.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cli/pubkey.cpp b/src/cli/pubkey.cpp index e90e0aa73..c28a9fa42 100644 --- a/src/cli/pubkey.cpp +++ b/src/cli/pubkey.cpp @@ -33,7 +33,7 @@ namespace Botan_CLI { class PK_Keygen final : public Command { public: - PK_Keygen() : Command("keygen --algo=RSA --params= --passphrase= --pbe= --pbe-millis=300 --der-out") {} + PK_Keygen() : Command("keygen --algo=RSA --params= --passphrase= --pbe= --pbe-millis=300 --provider= --der-out") {} std::string group() const override { @@ -49,9 +49,10 @@ class PK_Keygen final : public Command { const std::string algo = get_arg("algo"); const std::string params = get_arg("params"); + const std::string provider = get_arg("provider"); - std::unique_ptr<Botan::Private_Key> - key(Botan::create_private_key(algo, rng(), params)); + std::unique_ptr<Botan::Private_Key> key = + Botan::create_private_key(algo, rng(), params, provider); if(!key) { |