summaryrefslogtreecommitdiff
path: root/include/hostname_monitor.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-07 20:25:51 +0300
committerEd Tanous <ed@tanous.net>2022-01-12 22:00:37 +0300
commit46ff87bade273c75f71f940c5770d30e7a29595b (patch)
treee9c093a73a4cffda570a14e84908e029010a2d2b /include/hostname_monitor.hpp
parentecd6a3a20ab128ae9d3e356d6250695800dc13be (diff)
downloadbmcweb-46ff87bade273c75f71f940c5770d30e7a29595b.tar.xz
Enable reinterpre_cast checks
We seem to use reinterpret cast in a few cases unfortunately. For the moment, simply ignore most of them, and make it so we don't get more. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ic860cf922576b18cdc8d51d6132f5a9cbcc1d9dc
Diffstat (limited to 'include/hostname_monitor.hpp')
-rw-r--r--include/hostname_monitor.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hostname_monitor.hpp b/include/hostname_monitor.hpp
index 65a5c1c34a..30186b650e 100644
--- a/include/hostname_monitor.hpp
+++ b/include/hostname_monitor.hpp
@@ -103,6 +103,7 @@ inline int onPropertyUpdate(sd_bus_message* m, void* /* userdata */,
X509_get_ext_d2i(cert, NID_netscape_comment, nullptr, nullptr));
if (asn1)
{
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
std::string_view comment(reinterpret_cast<const char*>(asn1->data),
static_cast<size_t>(asn1->length));
BMCWEB_LOG_DEBUG << "x509Comment: " << comment;