]>
git.saurik.com Git - apple/security.git/blob - utilities/src/iOSforOSX.h
5 // Created by J Osborne on 11/13/12.
6 // Copyright (c) 2012 Apple Inc. All rights reserved.
9 #ifndef utilities_iOSforOSX_h
10 #define utilities_iOSforOSX_h
12 #include <TargetConditionals.h>
13 #if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE))
15 extern CFURLRef
SecCopyKeychainDirectoryFile(CFStringRef file
);
17 CFURLRef
PortableCFCopyHomeDirectoryURL(void);
19 #ifndef _SECURITY_SECRANDOM_H_
20 extern const void *kSecRandomDefault
;
23 #ifndef _SECURITY_SECBASE_H_
24 typedef struct OpaqueSecKeyRef
*SecKeyRef
;
26 OSStatus
SecKeyCopyPersistentRef(SecKeyRef item
, CFDataRef
*newPersistantRef
);
27 OSStatus
SecKeyFindWithPersistentRef(CFDataRef persistantRef
, SecKeyRef
*key
);
32 CFURLRef
PortableCFCopyHomeDirectoryURL(void) asm("_CFCopyHomeDirectoryURL");