---
title: "SSLSetSessionConfig(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslsetsessionconfig(_:_:)"
---

# SSLSetSessionConfig(_:_:)

Sets a predefined configuration for the Secure Sockets Layer (SSL) session.

## Declaration

```swift
func SSLSetSessionConfig(_ context: SSLContext, _ config: CFString) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.
- `config`: The predefined configuration you want to apply to the SSL session. You can configure enabled protocol versions, enabled cipher suites, and the doc://com.apple.security/documentation/Security/SSLSessionOption/fallback session option.

## Return Value

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