Function

SSLSetProtocolVersionMin(_:_:)

Sets the minimum protocol version allowed by the application for a given SSL context.

Declaration

func SSLSetProtocolVersionMin(_ context: SSLContext, _ minVersion: SSLProtocol) -> OSStatus

Parameters

context

The SSL context associated with the connection.

minVersion

The new minimum version (SSLProtocol.tlsProtocol1, for example). See SSLProtocol for a complete list.

Return Value

A result code. See Secure Transport Result Codes.

See Also

Versions

func SSLSetProtocolVersionMax(SSLContext, SSLProtocol) -> OSStatus

Sets the maximum protocol version allowed by the application for a given SSL context.

Deprecated
func SSLGetProtocolVersionMax(SSLContext, UnsafeMutablePointer<SSLProtocol>) -> OSStatus

Gets the maximum protocol version allowed by the application for a given SSL context.

Deprecated
func SSLGetProtocolVersionMin(SSLContext, UnsafeMutablePointer<SSLProtocol>) -> OSStatus

Gets the minimum protocol version allowed by the application for a given SSL context.

Deprecated
func SSLGetNegotiatedProtocolVersion(SSLContext, UnsafeMutablePointer<SSLProtocol>) -> OSStatus

Obtains the negotiated protocol version of the active session.

Deprecated
enum tls_protocol_version_t

The collection of supported TLS and DTLS versions.

Beta
enum SSLProtocol

An enumeration of valid SSL protocol versions.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software