MYCryptoConfig.h
changeset 28 54b373aa65ab
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/MYCryptoConfig.h	Fri Aug 07 11:24:53 2009 -0700
     1.3 @@ -0,0 +1,23 @@
     1.4 +//
     1.5 +//  MYCryptoConfig.h
     1.6 +//  MYCrypto
     1.7 +//
     1.8 +//  Created by Jens Alfke on 4/5/09.
     1.9 +//  Copyright 2009 Jens Alfke. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <Security/SecBase.h>
    1.13 +
    1.14 +/*  The iPhone simulator actually has the Mac OS X security API, not the iPhone one.
    1.15 +    So check which API is installed by looking for a preprocessor symbol that's defined
    1.16 +    only in the OS X version of SecBase.h. */
    1.17 +
    1.18 +#ifndef MYCRYPTO_USE_IPHONE_API
    1.19 +
    1.20 +#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
    1.21 +#define MYCRYPTO_USE_IPHONE_API 1
    1.22 +#else
    1.23 +#define MYCRYPTO_USE_IPHONE_API 0
    1.24 +#endif
    1.25 +
    1.26 +#endif
    1.27 \ No newline at end of file