Enumeration

SSLProtocol

An enumeration of valid SSL protocol versions.

Declaration

typedef enum SSLProtocol : int {
    ...
} SSLProtocol;

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 kSSLProtocolAll specifies a single protocol version.

Topics

SSL Protocols

kSSLProtocolUnknown

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

kSSLProtocol2

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

kSSLProtocol3

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.

kSSLProtocol3Only

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.

kSSLProtocolAll

Specifies all supported versions. Deprecated in iOS.

TLS Protocols

kTLSProtocol1

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

kTLSProtocol1Only

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

kTLSProtocol11

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

kTLSProtocol12

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

kTLSProtocol13

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

kTLSProtocolMaxSupported

The maximum system supported version.

DTLS Protocols

kDTLSProtocol1

Specifies the DTLS 1.0 protocol.

See Also

Versions

SSLSetProtocolVersionMax

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

SSLSetProtocolVersionMin

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

SSLGetProtocolVersionMax

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

SSLGetProtocolVersionMin

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

SSLGetNegotiatedProtocolVersion

Obtains the negotiated protocol version of the active session.