---
title: "es_respond_auth_result(_:_:_:_:)"
framework: endpointsecurity
role: symbol
role_heading: Function
path: "endpointsecurity/es_respond_auth_result(_:_:_:_:)"
---

# es_respond_auth_result(_:_:_:_:)

Responds to an event that requires an authorization response.

## Declaration

```swift
func es_respond_auth_result(_ client: OpaquePointer, _ message: UnsafePointer<es_message_t>, _ result: es_auth_result_t, _ cache: Bool) -> es_respond_result_t
```

## Parameters

- `client`: The client that produced the event.
- `message`: The message that delivered the event.
- `result`: A result indicating the action the Endpoint Security subsystem should take.
- `cache`: Indicates whether Endpoint Security should cache the result. The caching semantics depend on the specific event type.

## Return Value

Return Value A result that indicates whether the response succeeded or failed.

## See Also

### Responding to Events

- [es_auth_result_t](endpointsecurity/es_auth_result_t.md)
- [es_respond_flags_result(_:_:_:_:)](endpointsecurity/es_respond_flags_result(_:_:_:_:).md)
- [es_respond_result_t](endpointsecurity/es_respond_result_t.md)
