---
title: "SSLClose(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslclose(_:)"
---

# SSLClose(_:)

Terminates the current SSL session.

## Declaration

```swift
func SSLClose(_ context: SSLContext) -> OSStatus
```

## Parameters

- `context`: The SSL session context reference of the session you want to terminate.

## Mentioned in

Using the Secure Socket Layer for Network Communication

## Return Value

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