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

# SSLDisposeContext

Disposes of a Secure Sockets Layer (SSL) session context.

```
OSStatus SSLDisposeContext(SSLContextRef context);
```

## Parameters

`context`

A reference to the SSL session context to dispose.

## Return Value

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

## Discussion

When you are completely finished with a secure session, you should dispose of the SSL session context in order to release the memory associated with the session.

---

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)