Avoid using deprecated ndn-cxx functions
Change-Id: Ib0eea64ad07bc940c98e9aa150ca9fca297928af
diff --git a/src/encrypted-content.hpp b/src/encrypted-content.hpp
index 90118d4..0f014c7 100644
--- a/src/encrypted-content.hpp
+++ b/src/encrypted-content.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2014-2018, Regents of the University of California
+/*
+ * Copyright (c) 2014-2020, Regents of the University of California
*
* NAC library is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -70,9 +70,9 @@
setPayload(ConstBufferPtr payload);
bool
- hasIv() const
+ hasIv() const noexcept
{
- return !m_iv.empty();
+ return m_iv.isValid();
}
const Block&
@@ -91,9 +91,9 @@
setIv(ConstBufferPtr iv);
bool
- hasPayloadKey() const
+ hasPayloadKey() const noexcept
{
- return !m_payloadKey.empty();
+ return m_payloadKey.isValid();
}
const Block&