+ // Use this when you want to be extra sure this keychain is removed from the
+ // cache. Iterates over the whole cache to find all instances. This function
+ // will take the cache map mutex.
+ void forceRemoveFromCache(KeychainImpl* inItemImpl);
+
+public:
+ // Change the DLDBIdentifier to reflect the files on-disk. Currently:
+ // If the keychain is in ~/Library/Keychains and either
+ // the .keychain-db version of the file exists or
+ // (global integrity protection is on AND isReset is true)
+ // then change the filename to include ".keychain-db".
+ //
+ // Otherwise, leave it alone.
+ static DLDbIdentifier mungeDLDbIdentifier(const DLDbIdentifier& dLDbIdentifier, bool isReset);
+
+ // Due to compatibility requirements, we need the DLDbListCFPref lists to
+ // never see a ".keychain-db" filename. Call this function to give them what
+ // they need.
+ static DLDbIdentifier demungeDLDbIdentifier(const DLDbIdentifier& dLDbIdentifier);
+
+ // Take a filename, and give it the extension .keychain-db
+ static string makeKeychainDbFilename(const string& filename);
+
+ // Check if a keychain path is in some user's ~/Library/Keychains/ folder.
+ static bool pathInHomeLibraryKeychains(const string& path);
+
+ // Notify the StorageManager that you're accessing this keychain. Used for
+ // time-based caching purposes.
+ void tickleKeychain(KeychainImpl *keychainImpl);
+
+private: