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

# sec_protocol_metadata_access_pre_shared_keys(_:_:)

## Declaration

```swift
func sec_protocol_metadata_access_pre_shared_keys(_ metadata: sec_protocol_metadata_t, _ handler: @escaping (dispatch_data_t, dispatch_data_t) -> Void) -> Bool
```

## Parameters

- `metadata`: A sec_protocol_metadata_t instance.
- `handler`: A block to invoke one or more times with tuples of dispatch_data_t objects carrying PSKs and their corresponding identities.

## Return Value

Return Value Returns true if the PSKs were accessible, false otherwise.

## Discussion

Discussion Get the PSKs supported by the local instance.
