]>
Commit | Line | Data |
---|---|---|
427c49bc A |
1 | // |
2 | // iOSforOSX.h | |
3 | // utilities | |
4 | // | |
5 | // Created by J Osborne on 11/13/12. | |
6 | // Copyright (c) 2012 Apple Inc. All rights reserved. | |
7 | // | |
8 | ||
9 | #ifndef utilities_iOSforOSX_h | |
10 | #define utilities_iOSforOSX_h | |
11 | ||
12 | #include <TargetConditionals.h> | |
13 | #if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)) | |
14 | ||
15 | extern CFURLRef SecCopyKeychainDirectoryFile(CFStringRef file); | |
16 | ||
17 | CFURLRef PortableCFCopyHomeDirectoryURL(void); | |
18 | ||
19 | #ifndef _SECURITY_SECRANDOM_H_ | |
20 | extern const void *kSecRandomDefault; | |
21 | #endif | |
22 | ||
23 | #ifndef _SECURITY_SECBASE_H_ | |
24 | typedef struct OpaqueSecKeyRef *SecKeyRef; | |
25 | #endif | |
26 | OSStatus SecKeyCopyPersistentRef(SecKeyRef item, CFDataRef *newPersistantRef); | |
27 | OSStatus SecKeyFindWithPersistentRef(CFDataRef persistantRef, SecKeyRef *key); | |
28 | ||
29 | ||
30 | #endif | |
31 | ||
32 | CFURLRef PortableCFCopyHomeDirectoryURL(void) asm("_CFCopyHomeDirectoryURL"); | |
33 | ||
34 | #endif |