snej@2: //
snej@2: //  MYCryptoConfig.h
snej@2: //  MYCrypto
snej@2: //
snej@2: //  Created by Jens Alfke on 4/5/09.
snej@2: //  Copyright 2009 Jens Alfke. All rights reserved.
snej@2: //
snej@2: 
snej@2: #import <Security/SecBase.h>
snej@2: 
snej@2: /*  The iPhone simulator actually has the Mac OS X security API, not the iPhone one.
snej@2:     So check which API is installed by looking for a preprocessor symbol that's defined
snej@2:     only in the OS X version of SecBase.h. */
snej@2: 
snej@2: #ifndef MYCRYPTO_USE_IPHONE_API
snej@2: 
snej@2: #if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
snej@2: #define MYCRYPTO_USE_IPHONE_API 1
snej@2: #else
snej@2: #define MYCRYPTO_USE_IPHONE_API 0
snej@2: #endif
snej@2: 
snej@2: #endif