diff -r 39fec79de6e8 -r 38c3c3923e1f MYCertificate.h --- a/MYCertificate.h Sun Jun 07 21:53:56 2009 -0700 +++ b/MYCertificate.h Wed Jun 10 09:02:18 2009 -0700 @@ -55,6 +55,9 @@ /** The list (if any) of the subject's email addresses. */ @property (readonly) NSArray *emailAddresses; +- (SecTrustResultType) evaluateTrustWithPolicy: (SecPolicyRef)policy; +- (SecTrustResultType) evaluateTrust; + /** @name Mac-Only * Functionality not available on iPhone. @@ -80,21 +83,24 @@ /** @name Expert */ //@{ -#if !TARGET_OS_IPHONE + (SecPolicyRef) X509Policy; + (SecPolicyRef) SSLPolicy; + +#if !TARGET_OS_IPHONE + (SecPolicyRef) SMIMEPolicy; - (CSSM_CERT_TYPE) certificateType; - (NSArray*) trustSettings; - (BOOL) setUserTrust: (SecTrustUserSetting)trustSetting; +#endif -#endif //@} @end +NSString* MYTrustResultDescribe( SecTrustResultType result ); +#if !TARGET_OS_IPHONE NSString* MYPolicyGetName( SecPolicyRef policy ); NSString* MYTrustDescribe( SecTrustRef trust ); -NSString* MYTrustResultDescribe( SecTrustResultType result ); +#endif