diff options
Diffstat (limited to 'src/cli/utils.cpp')
-rw-r--r-- | src/cli/utils.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/cli/utils.cpp b/src/cli/utils.cpp index 4974877a5..c074a11fc 100644 --- a/src/cli/utils.cpp +++ b/src/cli/utils.cpp @@ -41,14 +41,6 @@ #include <botan/bcrypt.h> #endif -#if defined(BOTAN_HAS_HMAC) - #include <botan/hmac.h> -#endif - -#if defined(BOTAN_HAS_HOTP) - #include <botan/hotp.h> -#endif - namespace Botan_CLI { std::unique_ptr<Botan::RandomNumberGenerator> @@ -418,8 +410,8 @@ class HMAC final : public Command void go() override { const std::string hash_algo = get_arg("hash"); - std::unique_ptr<Botan::MessageAuthenticationCode> hmac(Botan::MessageAuthenticationCode::create("HMAC(" + hash_algo + - ")")); + std::unique_ptr<Botan::MessageAuthenticationCode> hmac = + Botan::MessageAuthenticationCode::create("HMAC(" + hash_algo + ")"); if(!hmac) { throw CLI_Error_Unsupported("HMAC", hash_algo); } |