---
title: "SSLSetALPNProtocols(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslsetalpnprotocols(_:_:)"
---

# SSLSetALPNProtocols(_:_:)

Sets the list of supported applicaiton layer protocols.

## Declaration

```swift
func SSLSetALPNProtocols(_ context: SSLContext, _ protocols: CFArray) -> OSStatus
```

## Parameters

- `context`: The session context.
- `protocols`: An array of ASCII-encoded strings representing the supported protocols, such as http/1.1. See https://tools.ietf.org/html/rfc7301 for more details.

## Return Value

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