---
title: "SSLGetEnabledCiphers(_:_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslgetenabledciphers(_:_:_:)"
---

# SSLGetEnabledCiphers(_:_:_:)

Determines which SSL cipher suites are currently enabled.

## Declaration

```swift
func SSLGetEnabledCiphers(_ context: SSLContext, _ ciphers: UnsafeMutablePointer<SSLCipherSuite>, _ numCiphers: UnsafeMutablePointer<Int>) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.
- `ciphers`: On return, points to the enabled cipher suites. Before calling, you must allocate this buffer using the number of enabled cipher suites retrieved from a call to the doc://com.apple.security/documentation/Security/SSLGetNumberEnabledCiphers(_:_:) function.
- `numCiphers`: Pointer to the number of enabled cipher suites. Before calling, retrieve this value by calling the doc://com.apple.security/documentation/Security/SSLGetNumberEnabledCiphers(_:_:) function.

## Return Value

Return Value A result code. See Secure Transport Result Codes. If the supplied buffer is too small, errSSLBufferOverflow is returned.

## Discussion

Discussion Call the SSLSetEnabledCiphers(_:_:_:) function to specify which SSL cipher suites are enabled.
