# RPC_GSS_GET_MECH_INFO(3) - man - phpman

[RPC_GSS_GET_MECH_INFO(3)](https://www.chedong.com/phpMan.php/man/RPCGSSGETMECHINFO/3/markdown) BSD Library Functions Manual [RPC_GSS_GET_MECH_INFO(3)](https://www.chedong.com/phpMan.php/man/RPCGSSGETMECHINFO/3/markdown)

## 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 mecha‐
              nism.

     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 ar‐
     ray.

## AVAILABILITY
     The **rpc**___**gss**___**get**___**mech**___**info**() function is part of libtirpc.

## SEE ALSO
     [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown), [gssapi(3)](https://www.chedong.com/phpMan.php/man/gssapi/3/markdown), [rpcsec_gss(3)](https://www.chedong.com/phpMan.php/man/rpcsecgss/3/markdown)

## AUTHORS
     This manual page was written by Doug Rabson <<dfr@FreeBSD.org>>.

BSD                            January 26, 2010                            BSD
