MYCryptoConfig.h
author Jens Alfke <jens@mooseyard.com>
Wed Jun 10 09:02:18 2009 -0700 (2009-06-10)
changeset 25 38c3c3923e1f
permissions -rw-r--r--
Changed the X.509 version number in generated certs from 1 to 3, so that SecCertificateCreateFromData on iPhone will accept them. :-/
     1 //
     2 //  MYCryptoConfig.h
     3 //  MYCrypto
     4 //
     5 //  Created by Jens Alfke on 4/5/09.
     6 //  Copyright 2009 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Security/SecBase.h>
    10 
    11 /*  The iPhone simulator actually has the Mac OS X security API, not the iPhone one.
    12     So check which API is installed by looking for a preprocessor symbol that's defined
    13     only in the OS X version of SecBase.h. */
    14 
    15 #ifndef MYCRYPTO_USE_IPHONE_API
    16 
    17 #if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
    18 #define MYCRYPTO_USE_IPHONE_API 1
    19 #else
    20 #define MYCRYPTO_USE_IPHONE_API 0
    21 #endif
    22 
    23 #endif