]> git.saurik.com Git - apple/security.git/blobdiff - securityd/src/tempdatabase.cpp
Security-59306.61.1.tar.gz
[apple/security.git] / securityd / src / tempdatabase.cpp
index ed08fd1cf5d0ce8f4341d8eb611f8d46bbe8cd08..f80ccd11876f0902743d95f0dcfe82895adca8ed 100644 (file)
@@ -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<Key> &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);