diff options
author | Jack Lloyd <[email protected]> | 2019-04-26 21:40:15 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-04-26 21:40:15 -0400 |
commit | 7743c8e97a377ab3a24d590182d848b65d24dff2 (patch) | |
tree | 887ead8d61349be84b86113fd568fc2a0cd1a7d8 /src/cli/timing_tests.cpp | |
parent | 0b38f0c30bab4cf942863b4255ab2aabead556a4 (diff) |
Fix feature macro checks.
Add a checker script.
Diffstat (limited to 'src/cli/timing_tests.cpp')
-rw-r--r-- | src/cli/timing_tests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/timing_tests.cpp b/src/cli/timing_tests.cpp index 63e04b32d..3f5152ec1 100644 --- a/src/cli/timing_tests.cpp +++ b/src/cli/timing_tests.cpp @@ -44,7 +44,7 @@ #include <botan/system_rng.h> #endif -#if defined(BOTAN_HAS_AUTO_SEEDED_RNG) +#if defined(BOTAN_HAS_AUTO_SEEDING_RNG) #include <botan/auto_rng.h> #endif @@ -96,7 +96,7 @@ class Timing_Test { #if defined(BOTAN_HAS_SYSTEM_RNG) return Botan::system_rng(); -#elif defined(BOTAN_HAS_AUTO_SEEDED_RNG) +#elif defined(BOTAN_HAS_AUTO_SEEDING_RNG) static AutoSeeded_RNG static_timing_test_rng(Botan::Entropy_Sources::global_sources(), 0); return static_timing_test_rng; #else @@ -107,7 +107,7 @@ class Timing_Test }; -#if defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EME_PKCS1v15) && defined(BOTAN_HAS_EME_RAW) +#if defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EME_PKCS1) && defined(BOTAN_HAS_EME_RAW) class Bleichenbacker_Timing_Test final : public Timing_Test { @@ -544,7 +544,7 @@ BOTAN_REGISTER_COMMAND("timing_test", Timing_Test_Command); std::unique_ptr<Timing_Test> Timing_Test_Command::lookup_timing_test(const std::string& test_type) { -#if defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EME_PKCS1v15) && defined(BOTAN_HAS_EME_RAW) +#if defined(BOTAN_HAS_RSA) && defined(BOTAN_HAS_EME_PKCS1) && defined(BOTAN_HAS_EME_RAW) if(test_type == "bleichenbacher") { return std::unique_ptr<Timing_Test>(new Bleichenbacker_Timing_Test(2048)); |