ServerTrustFailureReason
public enum ServerTrustFailureReason : Sendable
Underlying reason a server trust evaluation error occurred.
-
The output of a server trust evaluation.
See moreDeclaration
Swift
public struct Output : Sendable -
No
ServerTrustEvaluatorwas found for the associated host.Declaration
Swift
case noRequiredEvaluator(host: String) -
No certificates were found with which to perform the trust evaluation.
Declaration
Swift
case noCertificatesFound -
No public keys were found with which to perform the trust evaluation.
Declaration
Swift
case noPublicKeysFound -
During evaluation, application of the associated
SecPolicyfailed.Declaration
Swift
case policyApplicationFailed(trust: SecTrust, policy: SecPolicy, status: OSStatus) -
During evaluation, setting the associated anchor certificates failed.
Declaration
Swift
case settingAnchorCertificatesFailed(status: OSStatus, certificates: [SecCertificate]) -
During evaluation, creation of the revocation policy failed.
Declaration
Swift
case revocationPolicyCreationFailed -
SecTrustevaluation failed with the associatedError, if one was produced.Declaration
Swift
case trustEvaluationFailed(error: (any Error)?) -
Revocation check failed with the associated
Outputand options.Declaration
Swift
case revocationCheckFailed(output: Output, options: RevocationTrustEvaluator.Options) -
Certificate pinning failed.
Declaration
Swift
case certificatePinningFailed(host: String, trust: SecTrust, pinnedCertificates: [SecCertificate], serverCertificates: [SecCertificate]) -
Public key pinning failed.
Declaration
Swift
case publicKeyPinningFailed(host: String, trust: SecTrust, pinnedKeys: [SecKey], serverKeys: [SecKey]) -
Custom server trust evaluation failed due to the associated
Error.Declaration
Swift
case customEvaluationFailed(error: any Error)
View on GitHub
Install in Dash