X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/6b200bc335dc93c5516ccb52f14bd896d8c7fad7..07691282a056c4efea71e1e505527601e8cc166b:/OSX/libsecurity_keychain/regressions/kc-30-xara-helpers.h diff --git a/OSX/libsecurity_keychain/regressions/kc-30-xara-helpers.h b/OSX/libsecurity_keychain/regressions/kc-30-xara-helpers.h index 5d461e64..affd4fc6 100644 --- a/OSX/libsecurity_keychain/regressions/kc-30-xara-helpers.h +++ b/OSX/libsecurity_keychain/regressions/kc-30-xara-helpers.h @@ -37,7 +37,7 @@ #pragma clang diagnostic ignored "-Wunused-function" /* name is the name of the test, not the name of the keychain */ -static SecKeychainRef newKeychain(const char * name) { +static CF_RETURNS_RETAINED SecKeychainRef newKeychain(const char * name) { SecKeychainRef kc = NULL; char* password = "password"; @@ -74,7 +74,7 @@ static SecKeychainRef newCustomKeychain(const char * name, const char * path, co } #define newCustomKeychainTests 1 -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); @@ -88,7 +88,7 @@ static SecKeychainRef openCustomKeychain(const char * name, const char * path, c } #define openCustomKeychainTests 2 -static SecKeychainRef openKeychain(const char * name) { +static CF_RETURNS_RETAINED SecKeychainRef openKeychain(const char * name) { return openCustomKeychain(name, keychainName, NULL); } #define openKeychainTests (openCustomKeychainTests)