SSLSetProtocolVersionMax(_:_:)
Sets the maximum protocol version allowed by the application for a given SSL context.
Declaration
func SSLSetProtocolVersionMax(_ context: SSLContext, _ maxVersion: SSLProtocol) -> OSStatusParameters
- context:
The SSL context associated with the connection.
- maxVersion:
The new maximum version (Tlsprotocol1, for example). See Sslprotocol for a complete list.
Return Value
A result code. See Secure Transport Result Codes.