diff options
author | Jack Lloyd <[email protected]> | 2017-10-02 23:55:55 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-02 23:55:55 -0400 |
commit | 8c700bcf093b82a29e93f79932e4f1542818186a (patch) | |
tree | 1ac3548255490fc01fd6d6ee366b2029b16b18f4 /src/cli | |
parent | a0a27808005346ef151ea7b07550dc03434b9e84 (diff) |
Remove various unused variables
Sonar finds
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/timing_tests.cpp | 2 | ||||
-rw-r--r-- | src/cli/tls_server.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/timing_tests.cpp b/src/cli/timing_tests.cpp index 73296e230..3ea82c746 100644 --- a/src/cli/timing_tests.cpp +++ b/src/cli/timing_tests.cpp @@ -280,6 +280,8 @@ ticks ECDSA_Timing_Test::measure_critical_function(std::vector<uint8_t> input) const Botan::PointGFp k_times_P = m_base_point.blinded_multiply(k, Timing_Test::timing_test_rng()); const Botan::BigInt r = m_mod_order.reduce(k_times_P.get_affine_x()); const Botan::BigInt s = m_mod_order.multiply(inverse_mod(k, m_order), mul_add(m_x, r, msg)); + BOTAN_UNUSED(r); + BOTAN_UNUSED(s); ticks end = get_ticks(); diff --git a/src/cli/tls_server.cpp b/src/cli/tls_server.cpp index 0d3dca785..703967641 100644 --- a/src/cli/tls_server.cpp +++ b/src/cli/tls_server.cpp @@ -91,7 +91,6 @@ class TLS_Server final : public Command std::unique_ptr<Botan::TLS::Policy> policy; const std::string policy_file = get_arg("policy"); - std::filebuf fb; if(policy_file.size() > 0) { std::ifstream policy_stream(policy_file); |