X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..ce3c8656732c924baf7e88df75eab50891bdc471:/OSX/libsecurity_keychain/lib/StorageManager.h diff --git a/OSX/libsecurity_keychain/lib/StorageManager.h b/OSX/libsecurity_keychain/lib/StorageManager.h index edd02841..b1f82cf4 100644 --- a/OSX/libsecurity_keychain/lib/StorageManager.h +++ b/OSX/libsecurity_keychain/lib/StorageManager.h @@ -92,6 +92,8 @@ public: // Create KC if it doesn't exist, add it to the search list if it exists and is not already on it. Keychain makeKeychain(const DLDbIdentifier &dLDbIdentifier, bool add = true); + // Reload a keychain from the on-disk database + void reloadKeychain(Keychain keychain); // Keychain list maintenance @@ -155,14 +157,17 @@ private: static void convertList(DLDbList &ids, const KeychainList &kcs); void convertList(KeychainList &kcs, const DLDbList &ids); + DLDbIdentifier makeDLDbIdentifier(const char* pathName); + CssmClient::Db makeDb(DLDbIdentifier dLDbIdentifier); + // Only add if not there yet. Writes out CFPref and broadcasts KCPrefListChanged notification void addAndNotify(const Keychain& keychainToAdd); // remove a keychain from the sync list void removeKeychainFromSyncList (const DLDbIdentifier &id); - typedef map KeychainMap; - // Weak reference map of all keychains we know about that aren't deleted + typedef map KeychainMap; + // Reference map of all keychains we know about that aren't deleted // or removed KeychainMap mKeychains;