<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_respond_auth_result(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@F@es_respond_auth_result"
  },
  "title" : "es_respond_auth_result(_:_:_:_:)"
}
-->

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

Responds to an event that requires an authorization response.

```
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

A result that indicates whether the response succeeded or failed.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)