Function

SSLGetProtocolVersionMax(_:_:)

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

Declaration

func SSLGetProtocolVersionMax(_ context: SSLContext, _ maxVersion: UnsafeMutablePointer<SSLProtocol>) -> OSStatus

Parameters

context

The SSL context associated with the connection.

maxVersion

The address of an SSLProtocol integer where the maximum version should be stored. See SSLProtocol for a list of possible values.

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 SSLSetProtocolVersionMin(SSLContext, SSLProtocol) -> OSStatus

Sets the minimum 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.

enum SSLProtocol

An enumeration of valid SSL protocol versions.