MYCryptoConfig.h
author snej@snej.local
Sun Apr 12 22:16:14 2009 -0700 (2009-04-12)
changeset 9 aa5eb3fd6ebf
permissions -rw-r--r--
Doc touch-up
snej@2
     1
//
snej@2
     2
//  MYCryptoConfig.h
snej@2
     3
//  MYCrypto
snej@2
     4
//
snej@2
     5
//  Created by Jens Alfke on 4/5/09.
snej@2
     6
//  Copyright 2009 Jens Alfke. All rights reserved.
snej@2
     7
//
snej@2
     8
snej@2
     9
#import <Security/SecBase.h>
snej@2
    10
snej@2
    11
/*  The iPhone simulator actually has the Mac OS X security API, not the iPhone one.
snej@2
    12
    So check which API is installed by looking for a preprocessor symbol that's defined
snej@2
    13
    only in the OS X version of SecBase.h. */
snej@2
    14
snej@2
    15
#ifndef MYCRYPTO_USE_IPHONE_API
snej@2
    16
snej@2
    17
#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
snej@2
    18
#define MYCRYPTO_USE_IPHONE_API 1
snej@2
    19
#else
snej@2
    20
#define MYCRYPTO_USE_IPHONE_API 0
snej@2
    21
#endif
snej@2
    22
snej@2
    23
#endif