<!--
{
  "availability" : [
    "iOS: 5.0.0 - 13.0.0",
    "iPadOS: 5.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.2.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SSLGetEnabledCiphers(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SSLGetEnabledCiphers"
  },
  "title" : "SSLGetEnabledCiphers(_:_:_:)"
}
-->

# SSLGetEnabledCiphers(_:_:_:)

Determines which SSL cipher suites are currently enabled.

```
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 [`SSLGetNumberEnabledCiphers(_:_:)`](/documentation/Security/SSLGetNumberEnabledCiphers(_:_:)) function.

`numCiphers`

Pointer to the number of enabled cipher suites. Before calling, retrieve this value by calling the [`SSLGetNumberEnabledCiphers(_:_:)`](/documentation/Security/SSLGetNumberEnabledCiphers(_:_:)) function.

## Return Value

A result code. See [Secure Transport Result Codes](/documentation/Security/secure-transport-result-codes). If the supplied buffer is too small, [`errSSLBufferOverflow`](/documentation/Security/errSSLBufferOverflow) is returned.

## Discussion

Call the [`SSLSetEnabledCiphers(_:_:_:)`](/documentation/Security/SSLSetEnabledCiphers(_:_:_:)) function to specify which SSL cipher suites are enabled.

---

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)