Function

SSLSetProtocolVersionMax

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

Declaration

OSStatus SSLSetProtocolVersionMax(SSLContextRef context, SSLProtocol maxVersion);

Parameters

context

The SSL context associated with the connection.

maxVersion

The new maximum version (kTLSProtocol1, for example). See SSLProtocol for a complete list.

Return Value

A result code. See Secure Transport Result Codes.

See Also

Versions

SSLSetProtocolVersionMin

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

Deprecated
SSLGetProtocolVersionMax

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

Deprecated
SSLGetProtocolVersionMin

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

Deprecated
SSLGetNegotiatedProtocolVersion

Obtains the negotiated protocol version of the active session.

Deprecated
tls_protocol_version_t

The collection of supported TLS and DTLS versions.

SSLProtocol

An enumeration of valid SSL protocol versions.