aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/asn1.cpp2
-rw-r--r--src/cli/speed.cpp9
-rw-r--r--src/cli/timing_tests.cpp4
-rw-r--r--src/cli/tls_utils.cpp2
4 files changed, 5 insertions, 12 deletions
diff --git a/src/cli/asn1.cpp b/src/cli/asn1.cpp
index 75ec5c3bb..b877a24a1 100644
--- a/src/cli/asn1.cpp
+++ b/src/cli/asn1.cpp
@@ -151,8 +151,6 @@ std::string type_name(Botan::ASN1_Tag type)
default:
return "TAG(" + std::to_string(static_cast<size_t>(type)) + ")";
}
-
- return "(UNKNOWN)";
}
void decode(Botan::BER_Decoder& decoder, size_t level)
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 6ea70d3d1..2bffc736e 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -224,18 +224,13 @@ class Timer
double milliseconds() const { return value() / 1000000.0; }
double ms_per_event() const { return milliseconds() / events(); }
- double seconds_per_event() const { return seconds() / events(); }
uint64_t cycles_consumed() const { return m_cpu_cycles_used; }
- uint64_t event_mult() const { return m_event_mult; }
uint64_t events() const { return m_event_count * m_event_mult; }
const std::string& get_name() const { return m_name; }
const std::string& doing() const { return m_doing; }
- uint64_t min_time() const { return m_min_time; }
- uint64_t max_time() const { return m_max_time; }
-
static std::string result_string_bps(const Timer& t);
static std::string result_string_ops(const Timer& t);
private:
@@ -1278,7 +1273,7 @@ class Speed final : public Command
}
}
#endif
-
+
#if defined(BOTAN_HAS_ECKCDSA)
void bench_eckcdsa(const std::string& provider,
std::chrono::milliseconds msec)
@@ -1298,7 +1293,7 @@ class Speed final : public Command
}
}
#endif
-
+
#if defined(BOTAN_HAS_ECGDSA)
void bench_ecgdsa(const std::string& provider,
std::chrono::milliseconds msec)
diff --git a/src/cli/timing_tests.cpp b/src/cli/timing_tests.cpp
index 570957cc3..3adda8482 100644
--- a/src/cli/timing_tests.cpp
+++ b/src/cli/timing_tests.cpp
@@ -53,8 +53,8 @@ typedef uint64_t ticks;
class Timing_Test
{
public:
- Timing_Test() {}
- virtual ~Timing_Test() {}
+ Timing_Test() = default;
+ virtual ~Timing_Test() = default;
std::vector<std::vector<ticks>>
execute_evaluation(const std::vector<std::string>& inputs,
diff --git a/src/cli/tls_utils.cpp b/src/cli/tls_utils.cpp
index 1e7332485..ef590ff3f 100644
--- a/src/cli/tls_utils.cpp
+++ b/src/cli/tls_utils.cpp
@@ -48,7 +48,7 @@ class TLS_All_Policy : public Botan::TLS::Policy
std::vector<std::string> allowed_signature_methods() const override
{
return { "ECDSA", "RSA", "DSA" };
- };
+ }
};
class TLS_Ciphersuites final : public Command