# rpc_gss_qop_to_num(3) - man - phpman

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

## NAME
     **rpc**___**gss**___**qop**___**to**___**num** — Convert a Quality of Protection name to number

## SYNOPSIS
     **#include** **<rpc/rpcsec**___**gss.h>**

     _bool_t_
     **rpc**___**gss**___**qop**___**to**___**num**(_const_ _char_ _*qop_, _const_ _char_ _*mech_, _u_int_ _*num_ret_);

## DESCRIPTION
     This function returns the numeric QOP value associated with the GSS_API QOP "qop" and mechanism
     "mech."

## PARAMETERS
     qop         The name of Quality of Protection associated with the GSS_API mechanism "mech".
                 "GSS_C_QOP_DEFAULT" is currently the only supported QOP.

     mech        The name of a GSS_API mechanism.  "kerberos_v5" is currently the only supported
                 mechanism.

     number_ret  Buffer in which to place the returned QOP number

## RETURN VALUES
     If the QOP and mechanism names are recognized, TRUE is returned.  The corresponding QOP number
     is returned in _*num_ret_.  Otherwise FALSE is returned and
     is left untouched.

## AVAILABILITY
     The **rpc**___**gss**___**qop**___**to**___**num**() 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
