SecTrustSetOCSPResponse(_:_:)
Attaches Online Certificate Status Protocol (OSCP) response data to a trust object.
Declaration
func SecTrustSetOCSPResponse(_ trust: SecTrust, _ responseData: CFTypeRef?) -> OSStatusParameters
Return Value
A result code. See Security Framework Result Codes.
Discussion
This function allows the caller to provide OCSPResponse data (which may be obtained during a TLS/SSL handshake, per RFC3546) as input to a trust evaluation. If this data is available, it can obviate the need to contact an OCSP server for current revocation information.