Contents

SSLGetProtocolVersionEnabled

Retrieves the enabled status of a given protocol.

Declaration

OSStatus SSLGetProtocolVersionEnabled(SSLContextRef context, SSLProtocol protocol, Boolean *enable);

Parameters

  • context:

    An SSL session context reference.

  • protocol:

    A value of type SSLProtocol representing an SSL protocol version.

  • enable:

    On return, points to a Boolean value indicating whether the specified protocol version is enabled. If this value is true, the protocol is enabled.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

You can specify any one of the following values for the protocol parameter:

  • kSSLProtocol2

  • kSSLProtocol3

  • kTLSProtocol1

  • kSSLProtocolAll Specify this value to determine whether all protocols are enabled.