<!--
{
  "availability" : [
    "macOS: 10.2.0 - 10.8.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SSLGetProtocolVersion",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SSLGetProtocolVersion"
  },
  "title" : "SSLGetProtocolVersion"
}
-->

# SSLGetProtocolVersion

Gets the SSL protocol version.

```
OSStatus SSLGetProtocolVersion(SSLContextRef context, SSLProtocol *protocol);
```

## Parameters

`context`

An SSL session context reference.

`protocol`

On return, a pointer to the SSL protocol version.

## Return Value

A result code. See [Secure Transport Result Codes](/documentation/Security/secure-transport-result-codes).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)