mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-14 01:06:09 -04:00
Move unlockDatabase to CLI/Utils (#2539)
Move unlockDatabase from Database to to cli/Utils
This commit is contained in:
parent
b6eeabab5e
commit
cb3c4893dc
13 changed files with 83 additions and 77 deletions
|
@ -130,7 +130,7 @@ void TestCli::cleanupTestCase()
|
|||
QSharedPointer<Database> TestCli::readTestDatabase() const
|
||||
{
|
||||
Utils::Test::setNextPassword("a");
|
||||
auto db = QSharedPointer<Database>(Database::unlockFromStdin(m_dbFile->fileName(), "", m_stdoutHandle));
|
||||
auto db = QSharedPointer<Database>(Utils::unlockDatabase(m_dbFile->fileName(), "", m_stdoutHandle));
|
||||
m_stdoutFile->seek(ftell(m_stdoutHandle)); // re-synchronize handles
|
||||
return db;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue