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

# gss\_duplicate\_name(3)

API function

## NAME

gss\_duplicate\_name - API function

## SYNOPSIS

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

**OM\_uint32 gss\_duplicate\_name(OM\_uint32 \*** *minor\_status***, const gss\_name\_t** *src\_name***, gss\_name\_t \*** *dest\_name***);**

## ARGUMENTS

- OM\_uint32 \* minor\_status

  (Integer, modify) Mechanism specific status code.

- const gss\_name\_t src\_name

  (gss\_name\_t, read) Internal name to be duplicated.

- gss\_name\_t \* dest\_name

  (gss\_name\_t, modify) The resultant copy of *src\_name*.\
     Storage associated with this name must be freed by the application\
     after use with a call to **gss\_release\_name()**.

## DESCRIPTION

Create an exact duplicate of the existing internal name *src\_name*. The new *dest\_name* will be independent of src\_name (i.e. *src\_name* and *dest\_name* must both be released, and the release of one shall not affect the validity of the other).

## RETURN VALUE

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

\`GSS\_S\_BAD\_NAME\`: The src\_name parameter was ill-formed.

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