OCSPRequesterQueryResult
OCSPPolicy.swift:39struct OCSPRequesterQueryResultstruct OCSPRequesterQueryResultimport X509A library for working with X.509 certificates.
protocol OCSPRequester : Sendablestruct OCSPFailureModeDefines the behaviour of OCSPVerifierPolicy in the event of a failure. soft should be used most of the time and will only fail verification if a verified OCSP response reports a status of revoked.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
static func nonTerminalError(_ reason: any Error) -> OCSPRequesterQueryResult The OCSP query is considered unsuccessful but will not fail verification, neither in soft nor in hard failure mode. The certificate is then considered to meet the OCSPVerifierPolicy.
static func response(_ bytes: [UInt8]) -> OCSPRequesterQueryResult The OCSP query is considered successful and has returned the given DER-encoded response bytes.
static func terminalError(_ reason: any Error) -> OCSPRequesterQueryResult The OCSP query is considered unsuccessful and will fail verification in both soft and hard failure mode. The certificate is then considered to not meet the OCSPVerifierPolicy and chainMeetsPolicyRequirements(chain:) will return failsToMeetPolicy(reason:) with the given reason.