---
title: "SSLGetNumberEnabledCiphers(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslgetnumberenabledciphers(_:_:)"
---

# SSLGetNumberEnabledCiphers(_:_:)

Determines the number of cipher suites currently enabled.

## Declaration

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

## Parameters

- `context`: An SSL session context reference.
- `numCiphers`: On return, points to the number of enabled cipher suites.

## Return Value

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

## Discussion

Discussion You use the number of enabled cipher suites returned by this function when you call the SSLGetEnabledCiphers(_:_:_:) function to retrieve the list of currently enabled cipher suites.
