---
title: "gss_set_cred_option(_:_:_:_:)"
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_set_cred_option(_:_:_:_:)"
---

# gss_set_cred_option(_:_:_:_:)

Changes a credential option.

## Declaration

```swift
func gss_set_cred_option(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ cred_handle: UnsafeMutablePointer<gss_cred_id_t?>?, _ object: gss_OID, _ value: gss_buffer_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 update.
- `object`: An object identifier that indicates the characteristic of the credential that should be changed.
- `value`: The new value for the named object.

## Return Value

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

## See Also

### Allocation and Deallocation

- [GSSCreateCredentialFromUUID(_:)](gss/gsscreatecredentialfromuuid(_:).md)
- [gss_add_cred(_:_:_:_:_:_:_:_:_:_:_:)](gss/gss_add_cred(_:_:_:_:_:_:_:_:_:_:_:).md)
- [gss_release_cred(_:_:)](gss/gss_release_cred(_:_:).md)
- [gss_destroy_cred(_:_:)](gss/gss_destroy_cred(_:_:).md)
