X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/c38e3ce98599a410a47dc10253faa4d5830f13b2..427c49bcad63d042b29ada2ac27e3dfc4845c779:/utilities/src/iOSforOSX.h diff --git a/utilities/src/iOSforOSX.h b/utilities/src/iOSforOSX.h new file mode 100644 index 00000000..96cb072f --- /dev/null +++ b/utilities/src/iOSforOSX.h @@ -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 +#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