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

# sec_protocol_metadata_get_early_data_accepted(_:)

## Declaration

```swift
func sec_protocol_metadata_get_early_data_accepted(_ metadata: sec_protocol_metadata_t) -> Bool
```

## Parameters

- `metadata`: A sec_protocol_metadata_t instance.

## Return Value

Return Value A bool indicating if early data was accepted.

## Discussion

Discussion Determine if early data was accepted by the peer.
