---
name: "gss_add_oid_set_member"
section: "3"
platform: "linux"
package: "gss-man"
version: "1.0.4-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gss_add_oid_set_member"
---

# gss\_add\_oid\_set\_member(3)

API function

## NAME

gss\_add\_oid\_set\_member - API function

## SYNOPSIS

**#include \<gss.h\>**

**OM\_uint32 gss\_add\_oid\_set\_member(OM\_uint32 \*** *minor\_status***, const gss\_OID** *member\_oid***, gss\_OID\_set \*** *oid\_set***);**

## ARGUMENTS

- OM\_uint32 \* minor\_status

  (integer, modify) Mechanism specific status code.

- const gss\_OID member\_oid

  (Object ID, read) The object identifier to copied into\
     the set.

- gss\_OID\_set \* oid\_set

  (Set of Object ID, modify) The set in which the object\
     identifier should be inserted.

## DESCRIPTION

Add an Object Identifier to an Object Identifier set.  This routine is intended for use in conjunction with gss\_create\_empty\_oid\_set when constructing a set of mechanism OIDs for input to gss\_acquire\_cred.  The oid\_set parameter must refer to an OID-set that was created by GSS-API (e.g. a set returned by **gss\_create\_empty\_oid\_set()**). GSS-API creates a copy of the member\_oid and inserts this copy into the set, expanding the storage allocated to the OID-set's elements array if necessary. The routine may add the new member OID anywhere within the elements array, and implementations should verify that the new member\_oid is not already contained within the elements array; if the member\_oid is already present, the oid\_set should remain unchanged.

## RETURN VALUE

\`GSS\_S\_COMPLETE\`: Successful completion.

## REPORTING BUGS

Report bugs to \<bug-gss@gnu.org\>. GNU Generic Security Service home page: http://www.gnu.org/software/gss/ General help using GNU software: http://www.gnu.org/gethelp/

## COPYRIGHT

Copyright © 2003-2022 Simon Josefsson.\
 Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

## SEE ALSO

The full documentation for **gss** is maintained as a Texinfo manual.  If the **info** and **gss** programs are properly installed at your site, the command

-

  **info gss**

should give you access to the complete manual.
