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

# gss_inquire_cred_by_oid(_:_:_:_:)

Inquires about a particular characteristic of a credential.

```
func gss_inquire_cred_by_oid(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ cred_handle: gss_cred_id_t, _ desired_object: gss_OID, _ data_set: UnsafeMutablePointer<gss_buffer_set_t?>) -> OM_uint32
```

## Parameters

`minor_status`

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

`cred_handle`

The credential to inquire about.

`desired_object`

The object identifier of the characteristic of the credential to return.

`data_set`

A pointer the function uses to return a set of buffers that contain the results across all of the credential’s mechanisms. If the desired object is not found, this is set to [`GSS_C_NO_BUFFER_SET`](/documentation/GSS/GSS_C_NO_BUFFER_SET). Otherwise, call [`gss_release_buffer_set(_:_:)`](/documentation/GSS/gss_release_buffer_set(_:_:)) to free the memory of this object 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 description of other 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)