---
title: "SSLGetNumberSupportedCiphers(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslgetnumbersupportedciphers(_:_:)"
---

# SSLGetNumberSupportedCiphers(_:_:)

Determines the number of cipher suites supported.

## Declaration

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

## Parameters

- `context`: An SSL session context reference.
- `numCiphers`: On return, points to the number of supported 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 SSLGetNumberSupportedCiphers(_:_:) function to retrieve the list of currently enabled cipher suites.
