---
title: "SSLReHandshake(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslrehandshake(_:)"
---

# SSLReHandshake(_:)

Requests renegotiation of the SSL handshake. Server only.

## Declaration

```swift
func SSLReHandshake(_ context: SSLContext) -> OSStatus
```

## Parameters

- `context`: An SSL session context reference.

## Return Value

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

## Discussion

Discussion On success, call the SSLHandshake(_:) function or the SSLRead(_:_:_:_:) function, or both, as appropriate, as you would for the original handshake.
