* More work on iPhone compatibility.
* Restored the signature-verification code to MYCertInfo, which I'd removed earlier. I now need it to verify self-signed certs, since the Security framework won't do it for me.
* Merged MYCertificate-iPhone.m into MYCertificate.m since there's more shared code now.
5 // Created by Jens Alfke on 4/5/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import <Security/SecBase.h>
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. */
15 #ifndef MYCRYPTO_USE_IPHONE_API
17 #if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
18 #define MYCRYPTO_USE_IPHONE_API 1
20 #define MYCRYPTO_USE_IPHONE_API 0