---
title: "SSLSetClientSideAuthenticate(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslsetclientsideauthenticate(_:_:)"
---

# SSLSetClientSideAuthenticate(_:_:)

Specifies the requirements for client-side authentication.

## Declaration

```swift
func SSLSetClientSideAuthenticate(_ context: SSLContext, _ auth: SSLAuthenticate) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.
- `auth`: A flag setting the requirements for client-side authentication. See doc://com.apple.security/documentation/Security/SSLAuthenticate for possible values.

## Return Value

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

## Discussion

Discussion This function can be called only by servers. Use of this function is optional. The default authentication requirement is SSLAuthenticate.neverAuthenticate. This function may be called only when no session is active.
