RPC\_GSS\_GET\_MECH\_INFO(3) Library Functions Manual RPC\_GSS\_GET\_MECH\_INFO(3)

# [NAME](#NAME)

`rpc_gss_get_mech_info` — Get Quality of Protection information for a security mechanism

# [SYNOPSIS](#SYNOPSIS)

`#include <rpc/rpcsec_gss.h>`

`const char **`  
`rpc_gss_get_mech_info`(`const char *mech`, `rpc_gss_service_t *service`);

# [DESCRIPTION](#DESCRIPTION)

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

# [PARAMETERS](#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](#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](#AVAILABILITY)

The [`rpc_gss_get_mech_info`](#rpc_gss_get_mech_info)() function is part of libtirpc.

# [SEE ALSO](#SEE_ALSO)

[rpc(3)](/man/os/libtirpc/rpc.3), [gssapi(3)](/man/os/libtirpc/gssapi.3), [rpcsec\_gss(3)](/man/os/libtirpc/rpcsec_gss.3)

# [AUTHORS](#AUTHORS)

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

January 26, 2010 Linux 4.19.0-gvisor

---

Document: rpc_gss_get_mech_info(3t) from libtirpc 1.3.8-r0 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/libtirpc/libtirpc/1.3.8/libtirpc-1.3.8.tar.bz2
