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

# gss_display_mech_attr(_:_:_:_:_:)

Returns a human-readable name and description of a mechanism attribute.

```
func gss_display_mech_attr(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ mech_attr: gss_const_OID, _ name: gss_buffer_t?, _ short_desc: gss_buffer_t?, _ long_desc: gss_buffer_t?) -> OM_uint32
```

## Parameters

`minor_status`

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

`mech_attr`

The mechanism attribute to examine. See Mechanisms and Authentication in [Security Mechanisms](/documentation/GSS/security-mechanisms) for a list of possible values.

`name`

A buffer the function fills with a human readable version of the mechanism attribute. Release this buffer with a call to [`gss_release_buffer(_:_:)`](/documentation/GSS/gss_release_buffer(_:_:)) when you are done with it.

`short_desc`

A buffer the function fills with a short description of the mechanism attribute. Release this buffer with a call to [`gss_release_buffer(_:_:)`](/documentation/GSS/gss_release_buffer(_:_:)) when you are done with it.

`long_desc`

A buffer the function fills with a longer description of the mechanism attribute. 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 or [`GSS_S_BAD_MECH`](/documentation/GSS/GSS_S_BAD_MECH) if the desired mechanism is unsupported. See [Function Status](/documentation/GSS/function-status) for a complete enumeration of status outputs.

## 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)