diff --git a/cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc b/cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc index 77275b1c476b988b8bc1dcfa6a7b08e60711b297..50801aa31232afb84197200829b54d6b2cb1743d 100644 --- a/cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc +++ b/cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc @@ -11,6 +11,7 @@ #include <vereign/crypto/aes.hh> #include <vereign/crypto/bio.hh> +#include <boost/core/ignore_unused.hpp> #include <chrono> namespace { @@ -26,9 +27,11 @@ namespace { namespace vereign::kvstore::detail { -CryptoStorageImpl::CryptoStorageImpl(kvstore::Storage& storage) +CryptoStorageImpl::CryptoStorageImpl(kvstore::Storage& storage, bool disable_key_protection) : storage_{storage} -{} +{ + boost::ignore_unused(disable_key_protection); +} void CryptoStorageImpl::Open(const std::string& pin) { kvstore::Lock l{storage_, lockRetryCount, lockRetrySleep}; diff --git a/cpp/src/vereign/kvstore/detail/linux_crypto_storage.hh b/cpp/src/vereign/kvstore/detail/linux_crypto_storage.hh index 327603621fb64ecbd9b05ccd3740ca3e5287933a..1f8b08289811e938c7b9012049a6c0d92d77a38b 100644 --- a/cpp/src/vereign/kvstore/detail/linux_crypto_storage.hh +++ b/cpp/src/vereign/kvstore/detail/linux_crypto_storage.hh @@ -7,7 +7,7 @@ namespace vereign::kvstore::detail { class CryptoStorageImpl { public: - CryptoStorageImpl(kvstore::Storage& storage); + CryptoStorageImpl(kvstore::Storage& storage, bool disable_key_protection); // disable copying CryptoStorageImpl(const CryptoStorageImpl&) = delete;