---
name: "gss_compare_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_compare_name"
---

# gss\_compare\_name(3)

API function

## NAME

gss\_compare\_name - API function

## SYNOPSIS

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

**OM\_uint32 gss\_compare\_name(OM\_uint32 \*** *minor\_status***, const gss\_name\_t** *name1***, const gss\_name\_t** *name2***, int \*** *name\_equal***);**

## ARGUMENTS

- OM\_uint32 \* minor\_status

  (Integer, modify) Mechanism specific status code.

- const gss\_name\_t name1

  (gss\_name\_t, read) Internal-form name.

- const gss\_name\_t name2

  (gss\_name\_t, read) Internal-form name.

- int \* name\_equal

  (boolean, modify) Non-zero - names refer to same\
     entity. Zero - names refer to different entities (strictly, the\
     names are not known to refer to the same identity).

## DESCRIPTION

Allows an application to compare two internal-form names to determine whether they refer to the same entity.

If either name presented to gss\_compare\_name denotes an anonymous principal, the routines should indicate that the two names do not refer to the same identity.

## RETURN VALUE

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

\`GSS\_S\_BAD\_NAMETYPE\`: The two names were of incomparable types.

\`GSS\_S\_BAD\_NAME\`: One or both of name1 or name2 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.
