Enumeration

SSLProtocol

An enumeration of valid SSL protocol versions.

Declaration

enum SSLProtocol : Int32

Overview

The descriptions given here apply to the functions SSLSetProtocolVersion and SSLGetProtocolVersion. For the functions SSLSetProtocolVersionEnabled and SSLGetProtocolVersionEnabled, only the following values are used. For these functions, each constant except SSLProtocol.sslProtocolAll specifies a single protocol version.

Topics

SSL Protocols

case sslProtocolUnknown

Specifies that no protocol has been or should be negotiated or specified; use default.

Deprecated
case sslProtocol2

Specifies that only the SSL 2.0 protocol may be negotiated. Deprecated in iOS.

Deprecated
case sslProtocol3

Specifies that the SSL 3.0 protocol is preferred; the SSL 2.0 protocol may be negotiated if the peer cannot use the SSL 3.0 protocol.

Deprecated
case sslProtocol3Only

Specifies that only the SSL 3.0 protocol may be negotiated; fails if the peer tries to negotiate the SSL 2.0 protocol. Deprecated in iOS.

Deprecated
case sslProtocolAll

Specifies all supported versions. Deprecated in iOS.

Deprecated

TLS Protocols

case tlsProtocol1

Specifies that the TLS 1.0 protocol is preferred but lower versions may be negotiated.

Deprecated
case tlsProtocol1Only

Specifies that only the TLS 1.0 protocol may be negotiated. Deprecated in iOS.

Deprecated
case tlsProtocol11

Specifies that the TLS 1.1 protocol is preferred but lower versions may be negotiated.

Deprecated
case tlsProtocol12

Specifies that the TLS 1.2 protocol is preferred but lower versions may be negotiated.

Deprecated
case tlsProtocol13

Specifies that the TLS 1.3 protocol is preferred but lower versions may be negotiated.

Deprecated
case tlsProtocolMaxSupported

The maximum system supported version.

Deprecated

DTLS Protocols

case dtlsProtocol1

Specifies the DTLS 1.0 protocol.

Deprecated
case dtlsProtocol12

Specifies the DTLS 1.2 protocol.

Deprecated

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 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

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