X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..07691282a056c4efea71e1e505527601e8cc166b:/OSX/libsecurity_cms/lib/CMSDecoder.h diff --git a/OSX/libsecurity_cms/lib/CMSDecoder.h b/OSX/libsecurity_cms/lib/CMSDecoder.h index df1c1872..7194f286 100644 --- a/OSX/libsecurity_cms/lib/CMSDecoder.h +++ b/OSX/libsecurity_cms/lib/CMSDecoder.h @@ -121,17 +121,14 @@ OSStatus CMSDecoderCopyDetachedContent( __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA); /* - * Optionally specify a SecKeychainRef, or an array of them, containing - * intermediate certs to be used in verifying a signed message's signer - * certs. By default, the default keychain search list is used for this. - * Specify an empty CFArrayRef to search *no* keychains for intermediate - * certs. - * If this is called, it must be called before CMSDecoderCopySignerStatus(). + * This function no longer affects the behavior of the CMS Decoder. Please + * discontinue use. */ OSStatus CMSDecoderSetSearchKeychain( CMSDecoderRef cmsDecoder, CFTypeRef keychainOrArray) - __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA); + __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_5, __MAC_10_13, __IPHONE_NA, __IPHONE_NA, + "To change the search keychains call SecKeychainSetSearchList."); /* * Obtain the number of signers of a message. A result of zero indicates that @@ -321,6 +318,8 @@ OSStatus CMSDecoderCopySignerSigningTime( CFAbsoluteTime *signingTime) /* RETURNED */ __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_NA); +#define TIMESTAMPING_SUPPORTED 1 +#if TIMESTAMPING_SUPPORTED /* * Obtain the timestamp of signer 'signerIndex' of a CMS message, if * present. This timestamp is an authenticated timestamp provided by @@ -371,6 +370,7 @@ OSStatus CMSDecoderCopySignerTimestampCertificates( size_t signerIndex, /* usually 0 */ CFArrayRef * __nonnull CF_RETURNS_RETAINED certificateRefs) /* RETURNED */ __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_NA); +#endif // TIMESTAMPING_SUPPORTED CF_ASSUME_NONNULL_END