|
|
@ -84,10 +84,10 @@ CDBWrapper::CDBWrapper(const boost::filesystem::path& path, size_t nCacheSize, b |
|
|
|
Write(OBFUSCATE_KEY_KEY, new_key); |
|
|
|
Write(OBFUSCATE_KEY_KEY, new_key); |
|
|
|
obfuscate_key = new_key; |
|
|
|
obfuscate_key = new_key; |
|
|
|
|
|
|
|
|
|
|
|
LogPrintf("Wrote new obfuscate key for %s: %s\n", path.string(), GetObfuscateKeyHex()); |
|
|
|
LogPrintf("Wrote new obfuscate key for %s: %s\n", path.string(), HexStr(obfuscate_key)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
LogPrintf("Using obfuscation key for %s: %s\n", path.string(), GetObfuscateKeyHex()); |
|
|
|
LogPrintf("Using obfuscation key for %s: %s\n", path.string(), HexStr(obfuscate_key)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CDBWrapper::~CDBWrapper() |
|
|
|
CDBWrapper::~CDBWrapper() |
|
|
@ -141,11 +141,6 @@ const std::vector<unsigned char>& CDBWrapper::GetObfuscateKey() const |
|
|
|
return obfuscate_key; |
|
|
|
return obfuscate_key; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::string CDBWrapper::GetObfuscateKeyHex() const |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return HexStr(obfuscate_key); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CDBIterator::~CDBIterator() { delete piter; } |
|
|
|
CDBIterator::~CDBIterator() { delete piter; } |
|
|
|
bool CDBIterator::Valid() { return piter->Valid(); } |
|
|
|
bool CDBIterator::Valid() { return piter->Valid(); } |
|
|
|
void CDBIterator::SeekToFirst() { piter->SeekToFirst(); } |
|
|
|
void CDBIterator::SeekToFirst() { piter->SeekToFirst(); } |
|
|
|