#pragma clang diagnostic ignored "-Wunused-function"
/* name is the name of the test, not the name of the keychain */
#pragma clang diagnostic ignored "-Wunused-function"
/* name is the name of the test, not the name of the keychain */
-static SecKeychainRef openCustomKeychain(const char * name, const char * path, const char * password) {
+static CF_RETURNS_RETAINED SecKeychainRef openCustomKeychain(const char * name, const char * path, const char * password) {
SecKeychainRef kc = NULL;
ok_status(SecKeychainOpen(path, &kc), "%s: SecKeychainOpen", name);
SecKeychainRef kc = NULL;
ok_status(SecKeychainOpen(path, &kc), "%s: SecKeychainOpen", name);
return openCustomKeychain(name, keychainName, NULL);
}
#define openKeychainTests (openCustomKeychainTests)
return openCustomKeychain(name, keychainName, NULL);
}
#define openKeychainTests (openCustomKeychainTests)