aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_tls.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-10 10:43:19 -0500
committerJack Lloyd <[email protected]>2018-12-10 10:43:19 -0500
commitefd1d99a291738786e353e28598e86e5dd08803d (patch)
treecb8c5e59708ddd273098af8dc40193cbf8953959 /src/tests/test_tls.cpp
parent965a8bfa31553e439898100913150ea4df1f734e (diff)
Fix some MSVC warnings
Diffstat (limited to 'src/tests/test_tls.cpp')
-rw-r--r--src/tests/test_tls.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/test_tls.cpp b/src/tests/test_tls.cpp
index 8a327b652..9b734bdea 100644
--- a/src/tests/test_tls.cpp
+++ b/src/tests/test_tls.cpp
@@ -358,11 +358,12 @@ class Test_TLS_Ciphersuites : public Test
for(size_t csuite_id = 0; csuite_id <= 0xFFFF; ++csuite_id)
{
- Botan::TLS::Ciphersuite ciphersuite = Botan::TLS::Ciphersuite::by_id(csuite_id);
+ const uint16_t csuite_id16 = static_cast<uint16_t>(csuite_id);
+ Botan::TLS::Ciphersuite ciphersuite = Botan::TLS::Ciphersuite::by_id(csuite_id16);
if(ciphersuite.valid())
{
- result.test_eq("Valid Ciphersuite is not SCSV", Botan::TLS::Ciphersuite::is_scsv(csuite_id), false);
+ result.test_eq("Valid Ciphersuite is not SCSV", Botan::TLS::Ciphersuite::is_scsv(csuite_id16), false);
if(ciphersuite.cbc_ciphersuite() == false)
{