X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb..7e6b461318c8a779d91381531435a68ee4e8b6ed:/securityd/src/tempdatabase.cpp diff --git a/securityd/src/tempdatabase.cpp b/securityd/src/tempdatabase.cpp index ed08fd1c..f80ccd11 100644 --- a/securityd/src/tempdatabase.cpp +++ b/securityd/src/tempdatabase.cpp @@ -95,6 +95,13 @@ const char *TempDatabase::dbName() const return "(transient)"; } +// +// A TempDatabase doesn't have a common object or a version, really, so overload the function to return some base version +// +uint32 TempDatabase::dbVersion() { + return CommonBlob::version_MacOS_10_0; +} + bool TempDatabase::transient() const { return true; @@ -123,12 +130,12 @@ void TempDatabase::makeSecurePassphraseKey(const Context &context, uint32 usage, uint32 attrs, RefPointer &newKey) { - secdebug("SSdb", "requesting secure passphrase"); + secinfo("SSdb", "requesting secure passphrase"); string passphrase; getSecurePassphrase(context, passphrase); - secdebug("SSdb", "wrapping securely-obtained passphrase as key"); + secinfo("SSdb", "wrapping securely-obtained passphrase as key"); // CssmKey rawKey(StringData(passphrase)) confuses gcc StringData passphraseData(passphrase);