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

# sec_protocol_metadata_access_ocsp_response(_:_:)

## Declaration

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

## Parameters

- `metadata`: A sec_protocol_metadata_t instance.
- `handler`: A block to invoke one or more times with OCSP data

## Return Value

Return Value Returns true if the OSCP response was accessible, false otherwise.

## Discussion

Discussion Get the OCSP response from the protocol instance peer.
