---
title: "gss_display_status(_:_:_:_:_:_:)"
framework: GSS
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.1+, macOS 10.7+, visionOS 1.0+]
path: "gss/gss_display_status(_:_:_:_:_:_:)"
---

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

Returns a human readable string for a status code.

## Declaration

```swift
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 doc://com.apple.gss/documentation/GSS/GSS_C_GSS_CODE for a GSS status code, or to doc://com.apple.gss/documentation/GSS/GSS_C_MECH_CODE for a mechanism status code.
- `mech_type`: The mechanism for which to interpret the status value. Set to doc://com.apple.gss/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 doc://com.apple.gss/documentation/GSS/gss_release_buffer(_:_:) when you are done with it.

## Return Value

Return Value A status code set to GSS_S_COMPLETE on success. See Function Status for a complete enumeration of status outputs.

## See Also

### Status and Error Creation

- [OM_uint32](gss/om_uint32.md)
- [OM_uint64](gss/om_uint64.md)
- [gss_uint32](gss/gss_uint32.md)
- [gss_status_id_t](gss/gss_status_id_t.md)
- [GSS_C_MECH_CODE](gss/gss_c_mech_code.md)
- [GSS_C_GSS_CODE](gss/gss_c_gss_code.md)
- [GSS_S_COMPLETE](gss/gss_s_complete.md)
- [GSSCreateError(_:_:_:)](gss/gsscreateerror(_:_:_:).md)
