CMSDecoderSetSearchKeychain(_:_:)
Specifies the keychains to search for intermediate certificates to be used in verifying a signed message’s signer certificates.
Declaration
func CMSDecoderSetSearchKeychain(_ cmsDecoder: CMSDecoder, _ keychainOrArray: CFTypeRef) -> OSStatusParameters
- cmsDecoder:
The CMSDecoder reference returned by the
CMSDecoderCreatefunction. - keychainOrArray:
Either a single keychain to search, specified as a keychain object (type
SecKeychainRef), or a set of keychains specified as aCFArrayof keychain objects. If you specify an emptyCFArrayRef, no keychains are searched for intermediate certificates.
Return Value
A result code. See Security Framework Result Codes.
Discussion
If you don’t call this function, the decoder uses the default keychain search list to search for intermediate certificates.
If you do call this function, you must call it before you call the CMSDecoderCopySignerStatus function.