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

# GSSCredentialCopyName(_:)

Returns the name describing the credential.

```
func GSSCredentialCopyName(_ cred: gss_cred_id_t) -> gss_name_t?
```

## Parameters

`cred`

The credential from which to get the name.

## Return Value

A GSS name for the given credential, or NULL on failure. Release this object with a call to [`gss_release_name(_:_:)`](/documentation/GSS/gss_release_name(_:_:)) when you are done with it.

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