<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GSS",
  "identifier" : "/documentation/GSS/gss_process_context_token(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "c:@F@gss_process_context_token"
  },
  "title" : "gss_process_context_token(_:_:_:)"
}
-->

# gss_process_context_token(_:_:_:)

Processes a token from a peer asynchronously.

```
func gss_process_context_token(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ context_handle: gss_ctx_id_t, _ token_buffer: gss_buffer_t) -> OM_uint32
```

## Parameters

`minor_status`

A pointer to the secondary status result that provides additional information in case of failure.

`context_handle`

The context that should handle the token.

`token_buffer`

The token to process.

## Return Value

A status code set to [`GSS_S_COMPLETE`](/documentation/GSS/GSS_S_COMPLETE) on success. See [Function Status](/documentation/GSS/function-status) for a description of other status outputs.

## Discussion

Normally, contexts exchange tokens during the initialization process, using [`gss_init_sec_context(_:_:_:_:_:_:_:_:_:_:_:_:_:)`](/documentation/GSS/gss_init_sec_context(_:_:_:_:_:_:_:_:_:_:_:_:_:)) and in the initiator and [`gss_accept_sec_context(_:_:_:_:_:_:_:_:_:_:_:)`](/documentation/GSS/gss_accept_sec_context(_:_:_:_:_:_:_:_:_:_:_:)) in the acceptor. Occasionally, a mechanism needs to send a token asynchronously, for example after a call to the [`gss_delete_sec_context(_:_:_:)`](/documentation/GSS/gss_delete_sec_context(_:_:_:)) function when you supply an output token buffer. The `gss_process_context_token` function provides a means to supply a token received from a peer to the context unexpectedly.

---

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)