]> git.saurik.com Git - apple/security.git/blobdiff - utilities/src/iOSforOSX.h
Security-55471.tar.gz
[apple/security.git] / utilities / src / iOSforOSX.h
diff --git a/utilities/src/iOSforOSX.h b/utilities/src/iOSforOSX.h
new file mode 100644 (file)
index 0000000..96cb072
--- /dev/null
@@ -0,0 +1,34 @@
+//
+//  iOSforOSX.h
+//  utilities
+//
+//  Created by J Osborne on 11/13/12.
+//  Copyright (c) 2012 Apple Inc. All rights reserved.
+//
+
+#ifndef utilities_iOSforOSX_h
+#define utilities_iOSforOSX_h
+
+#include <TargetConditionals.h>
+#if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE))
+
+extern CFURLRef SecCopyKeychainDirectoryFile(CFStringRef file);
+
+CFURLRef PortableCFCopyHomeDirectoryURL(void);
+
+#ifndef _SECURITY_SECRANDOM_H_
+extern const void *kSecRandomDefault;
+#endif
+
+#ifndef _SECURITY_SECBASE_H_
+typedef struct OpaqueSecKeyRef *SecKeyRef;
+#endif
+OSStatus SecKeyCopyPersistentRef(SecKeyRef item, CFDataRef *newPersistantRef);
+OSStatus SecKeyFindWithPersistentRef(CFDataRef persistantRef, SecKeyRef *key);
+
+
+#endif
+
+CFURLRef PortableCFCopyHomeDirectoryURL(void) asm("_CFCopyHomeDirectoryURL");
+
+#endif