Secure Transport Result Codes
Recognize result codes specific to the secure transport API.
Discussion
Use the SecCopyErrorMessageString(_:_:) function to obtain a human readable string corresponding to these status codes.
The functions of the Secure Transport API may also return the general codes listed in Security Framework Result Codes.
Errors in the range of –9819 through –9840 are fatal errors that are detected by the peer.
Topics
App Transport Security result codes
errSSLATSViolationerrSSLATSMinimumVersionViolationerrSSLATSCiphersuiteViolationerrSSLATSMinimumKeySizeViolationerrSSLATSLeafCertificateHashAlgorithmViolationerrSSLATSCertificateHashAlgorithmViolationerrSSLATSCertificateTrustViolation
Certificate issue result codes
errSSLBadCerterrSSLBadCertificateStatusResponseerrSSLCertExpirederrSSLCertNotYetValiderrSSLCertificateRequirederrSSLClientCertRequestederrSSLHostNameMismatcherrSSLNoRootCerterrSSLPeerBadCerterrSSLPeerCertExpirederrSSLPeerCertRevokederrSSLPeerCertUnknownerrSSLPeerUnsupportedCerterrSSLUnknownRootCerterrSSLXCertChainInvaliderrSSLPeerUnknownCA
Connection status result codes
errSSLClientHelloReceivederrSSLClosedAborterrSSLClosedGracefulerrSSLClosedNoNotifyerrSSLConnectionRefusederrSSLPeerAuthCompletederrSSLWouldBlock
Cryptography result codes
errSSLCryptoerrSSLDecryptionFailerrSSLPeerDecryptErrorerrSSLPeerDecryptionFailerrSSLWeakPeerEphemeralDHKey
Other result codes
errSSLBadCipherSuiteerrSSLBadConfigurationerrSSLBadRecordMacerrSSLBufferOverflowerrSSLConfigurationFailederrSSLDecodeErrorerrSSLDecompressFailerrSSLFatalAlerterrSSLHandshakeFailerrSSLIllegalParamerrSSLInappropriateFallbackerrSSLInternalerrSSLMissingExtensionerrSSLModuleAttacherrSSLNegotiationerrSSLNetworkTimeouterrSSLPeerAccessDeniederrSSLPeerBadRecordMacerrSSLPeerDecodeErrorerrSSLPeerDecompressFailerrSSLPeerExportRestrictionerrSSLPeerHandshakeFailerrSSLPeerInsufficientSecurityerrSSLPeerInternalErrorerrSSLPeerNoRenegotiationerrSSLPeerProtocolVersionerrSSLPeerRecordOverflowerrSSLPeerUnexpectedMsgerrSSLPeerUserCancellederrSSLProtocolerrSSLRecordOverflowerrSSLSessionNotFounderrSSLTransportReseterrSSLUnexpectedMessageerrSSLUnexpectedRecorderrSSLUnknownPSKIdentityerrSSLUnrecognizedNameerrSSLUnsupportedExtension