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
SSLProtocolrepresenting 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:
kSSLProtocol2kSSLProtocol3kTLSProtocol1kSSLProtocolAllSpecify this value to determine whether all protocols are enabled.