<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GSS",
  "identifier" : "/documentation/GSS/gss_OID_desc_struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "c:@S@gss_OID_desc_struct"
  },
  "title" : "gss_OID_desc_struct"
}
-->

# gss_OID_desc_struct

The structure for an OID descriptor that exchanges object identifiers with many GSS-API functions.

```
struct gss_OID_desc_struct
```

## Topics

### Instance Properties

[`elements`](/documentation/GSS/gss_OID_desc_struct/elements)

A pointer to the octets that make up the object identifier.

[`length`](/documentation/GSS/gss_OID_desc_struct/length)

The number of octets in the object identifier.

### Initialization

[`init()`](/documentation/GSS/gss_OID_desc_struct/init())

Initialize a new, empty object identifier.

[`init(length:elements:)`](/documentation/GSS/gss_OID_desc_struct/init(length:elements:))

Initialize a new object identifier with the given array of octets.



---

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)