---
title: "gss_inquire_sec_context_by_oid(_:_:_:_:)"
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_inquire_sec_context_by_oid(_:_:_:_:)"
---

# gss_inquire_sec_context_by_oid(_:_:_:_:)

Returns information about a particular part of a context.

## Declaration

```swift
func gss_inquire_sec_context_by_oid(_ minor_status: UnsafeMutablePointer<OM_uint32>, _ context_handle: gss_ctx_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.
- `context_handle`: The context to inquire about.
- `desired_object`: The object identifier naming the aspect of the context to examine.
- `data_set`: A pointer to a buffer set that includes the reference objects. Free this buffer set with doc://com.apple.gss/documentation/GSS/gss_release_buffer_set(_:_:) when you are done with it.

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

### Inquiry and Limits

- [gss_context_time(_:_:_:)](gss/gss_context_time(_:_:_:).md)
- [gss_inquire_context(_:_:_:_:_:_:_:_:_:)](gss/gss_inquire_context(_:_:_:_:_:_:_:_:_:).md)
- [gss_wrap_size_limit(_:_:_:_:_:_:)](gss/gss_wrap_size_limit(_:_:_:_:_:_:).md)
