Skip to content
Snippets Groups Projects
Verified Commit bc629b90 authored by Daniel Lyubomirov's avatar Daniel Lyubomirov
Browse files

[17] crypto storage linux fixes

parent 1d66cf16
Branches
Tags
1 merge request!97Crypto Storage and LoginWithNewDevice and LoginWithPreviouslyAddedDevice APIs
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <vereign/crypto/aes.hh> #include <vereign/crypto/aes.hh>
#include <vereign/crypto/bio.hh> #include <vereign/crypto/bio.hh>
#include <boost/core/ignore_unused.hpp>
#include <chrono> #include <chrono>
namespace { namespace {
...@@ -26,9 +27,11 @@ namespace { ...@@ -26,9 +27,11 @@ namespace {
namespace vereign::kvstore::detail { namespace vereign::kvstore::detail {
CryptoStorageImpl::CryptoStorageImpl(kvstore::Storage& storage) CryptoStorageImpl::CryptoStorageImpl(kvstore::Storage& storage, bool disable_key_protection)
: storage_{storage} : storage_{storage}
{} {
boost::ignore_unused(disable_key_protection);
}
void CryptoStorageImpl::Open(const std::string& pin) { void CryptoStorageImpl::Open(const std::string& pin) {
kvstore::Lock l{storage_, lockRetryCount, lockRetrySleep}; kvstore::Lock l{storage_, lockRetryCount, lockRetrySleep};
......
...@@ -7,7 +7,7 @@ namespace vereign::kvstore::detail { ...@@ -7,7 +7,7 @@ namespace vereign::kvstore::detail {
class CryptoStorageImpl { class CryptoStorageImpl {
public: public:
CryptoStorageImpl(kvstore::Storage& storage); CryptoStorageImpl(kvstore::Storage& storage, bool disable_key_protection);
// disable copying // disable copying
CryptoStorageImpl(const CryptoStorageImpl&) = delete; CryptoStorageImpl(const CryptoStorageImpl&) = delete;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment