<!--
{
  "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_display_status(_:_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "c:@F@gss_display_status"
  },
  "title" : "gss_display_status(_:_:_:_:_:_:)"
}
-->

# gss_display_status(_:_:_:_:_:_:)

Returns a human readable string for a status code.

```
func gss_display_status(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ status_value: OM_uint32, _ status_type: Int32, _ mech_type: gss_OID?, _ message_content: UnsafeMutablePointer<OM_uint32>, _ status_string: gss_buffer_t) -> OM_uint32
```

## Parameters

`minor_status`

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

`status_value`

The status to be examined.

`status_type`

The kind of status to be examined. Set to [`GSS_C_GSS_CODE`](/documentation/GSS/GSS_C_GSS_CODE) for a GSS status code, or to [`GSS_C_MECH_CODE`](/documentation/GSS/GSS_C_MECH_CODE) for a mechanism status code.

`mech_type`

The mechanism for which to interpret the status value. Set to [`GSS_C_NO_OID`](/documentation/GSS/GSS_C_NO_OID) to indicate the system default.

`message_content`

A pointer the function uses to return a context that is currently always set to zero.

`status_string`

A buffer the function fills with the human readable string corresponding to the status code. Release this buffer with a call to [`gss_release_buffer(_:_:)`](/documentation/GSS/gss_release_buffer(_:_:)) when you are done with it.

## 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 complete enumeration of status outputs.

---

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)