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

# sec_protocol_metadata_peers_are_equal(_:_:)

## Declaration

```swift
func sec_protocol_metadata_peers_are_equal(_ metadataA: sec_protocol_metadata_t, _ metadataB: sec_protocol_metadata_t) -> Bool
```

## Parameters

- `metadataA`: A sec_protocol_metadata_t instance.
- `metadataB`: A sec_protocol_metadata_t instance.

## Return Value

Return Value Returns true if both metadata values refer to the same peer, and false otherwise.

## Discussion

Discussion Compare peer information for two sec_protocol_metadata instances. This comparison does not include protocol configuration options, e.g., ciphersuites.
