From bc629b900f0b8d1f86be9728720cbee139a03675 Mon Sep 17 00:00:00 2001
From: Daniel Lyubomirov <daniel.lyubomirov@vereign.com>
Date: Thu, 25 Jun 2020 19:50:10 +0300
Subject: [PATCH] [17] crypto storage linux fixes

---
 cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc | 7 +++++--
 cpp/src/vereign/kvstore/detail/linux_crypto_storage.hh | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc b/cpp/src/vereign/kvstore/detail/linux_crypto_storage.cc
index 77275b1..50801aa 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 3276036..1f8b082 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;
-- 
GitLab