---
title: SSLGetProtocolVersionEnabled
framework: security
role: symbol
role_heading: Function
path: security/sslgetprotocolversionenabled
---

# SSLGetProtocolVersionEnabled

Retrieves the enabled status of a given protocol.

## Declaration

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

Return Value A result code. See Secure Transport Result Codes.

## Discussion

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.
