---
name: "rpc_gss_get_mech_info"
section: "3t"
platform: "linux"
package: "libtirpc"
version: "1.3.8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rpc_gss_get_mech_info/3t"
---

# rpc\_gss\_get\_mech\_info(3t)

Get Quality of Protection information for a security mechanism

## NAME

**rpc\_gss\_get\_mech\_info** – Get Quality of Protection information for a security mechanism

## SYNOPSIS

**#include \<rpc/rpcsec\_gss.h\>**

*const* *char* *\*\**\

**rpc\_gss\_get\_mech\_info**(*const char \*mech*, *rpc\_gss\_service\_t \*service*);

## DESCRIPTION

This function returns the list of QOP names supported by the GSS\_API mechanism named "mech".

## PARAMETERS

- mech

  The name of a GSS\_API mechanism. "kerberos\_v5" is currently the only supported mechanism.

- service

  Buffer in which maximum service type is planted

## RETURN VALUES

If the named GSS\_API mechanism is recognized, a list of the supported Qualities of Protection is returned. The maximum supported service type for the mechanism is returned in *\*service*. Otherwise NULL is returned.

Note: The returned QOP list is statically allocated memory. The caller must not free this array.

## AVAILABILITY

The **rpc\_gss\_get\_mech\_info**() function is part of libtirpc.

## SEE ALSO

[rpc(3)](/rpc/3.md), [gssapi(3)](/gssapi/3.md), [rpcsec\_gss(3)](/rpcsec_gss/3.md)

## AUTHORS

This manual page was written by Doug Rabson ⟨dfr@FreeBSD.org⟩.
