---
name: "rpc_gss_get_mech_info"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/rpc_gss_get_mech_info"
---

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

Get extra information about a security mechanism

## NAME

**rpc\_gss\_get\_mech\_info** – Get extra information about a security mechanism

## LIBRARY

library “librpcsec\_gss”

## SYNOPSIS

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

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

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

## DESCRIPTION

This function looks up a mechanism by name by reading the file /etc/gss/mech and queries it for its capabilities.

## PARAMETERS

- mech

  The mechanism to search for

- service

  If the mechanism is found, the maximum supported service type is returned in *\*service*

## RETURN VALUES

If the mechanism is found, a list of the supported qualities of protection is returned, otherwise NULL.

## SEE ALSO

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

## HISTORY

The **rpc\_gss\_get\_mech\_info** function first appeared in FreeBSD 8.0.

## AUTHORS

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