]> git.saurik.com Git - apple/security.git/blame - utilities/src/iOSforOSX.h
Security-55471.14.18.tar.gz
[apple/security.git] / utilities / src / iOSforOSX.h
CommitLineData
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
15extern CFURLRef SecCopyKeychainDirectoryFile(CFStringRef file);
16
17CFURLRef PortableCFCopyHomeDirectoryURL(void);
18
19#ifndef _SECURITY_SECRANDOM_H_
20extern const void *kSecRandomDefault;
21#endif
22
23#ifndef _SECURITY_SECBASE_H_
24typedef struct OpaqueSecKeyRef *SecKeyRef;
25#endif
26OSStatus SecKeyCopyPersistentRef(SecKeyRef item, CFDataRef *newPersistantRef);
27OSStatus SecKeyFindWithPersistentRef(CFDataRef persistantRef, SecKeyRef *key);
28
29
30#endif
31
32CFURLRef PortableCFCopyHomeDirectoryURL(void) asm("_CFCopyHomeDirectoryURL");
33
34#endif