aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_extensions.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2022-02-04 18:21:11 -0500
committerJack Lloyd <[email protected]>2022-02-06 08:52:17 -0500
commitbfa36e60338538a3563f542e0ac76d21b6ad7019 (patch)
treeeab4f996e829a6f9cbf0b65936a457d7c7dd538c /src/lib/tls/tls_extensions.cpp
parentfbb7c5fba1bcde2460dda48c1423a23b3b3062bf (diff)
Fix clang-tidy readability-container-size-empty warnings
Diffstat (limited to 'src/lib/tls/tls_extensions.cpp')
-rw-r--r--src/lib/tls/tls_extensions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/tls_extensions.cpp b/src/lib/tls/tls_extensions.cpp
index 792ebb5fc..d6d2bf55c 100644
--- a/src/lib/tls/tls_extensions.cpp
+++ b/src/lib/tls/tls_extensions.cpp
@@ -265,7 +265,7 @@ std::vector<uint8_t> Application_Layer_Protocol_Notification::serialize(Connecti
{
if(p.length() >= 256)
throw TLS_Exception(Alert::INTERNAL_ERROR, "ALPN name too long");
- if(p != "")
+ if(!p.empty())
append_tls_length_value(buf,
cast_char_ptr_to_uint8(p.data()),
p.size(),
@@ -557,7 +557,7 @@ std::vector<uint8_t> Supported_Versions::serialize(Connection_Side whoami) const
}
else
{
- BOTAN_ASSERT_NOMSG(m_versions.size() >= 1);
+ BOTAN_ASSERT_NOMSG(!m_versions.empty());
const uint8_t len = static_cast<uint8_t>(m_versions.size() * 2);
buf.push_back(len);