---
title: "SSLGetSessionOption(_:_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslgetsessionoption(_:_:_:)"
---

# SSLGetSessionOption(_:_:_:)

Indicates the current setting of Secure Sockets Layer (SSL) session options.

## Declaration

```swift
func SSLGetSessionOption(_ context: SSLContext, _ option: SSLSessionOption, _ value: UnsafeMutablePointer<DarwinBoolean>) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.
- `option`: An SSL session option. Possible values are listed in doc://com.apple.security/documentation/Security/SSLSessionOption.
- `value`: On return, true if the option is enabled, or false otherwise.

## Return Value

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