# RPC_GSS_MECH_TO_OID(3) - man - phpman

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

## NAME
     **rpc**___**gss**___**mech**___**to**___**oid** — Convert a mechanism name to a GSS-API oid

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

     _bool_t_
     **rpc**___**gss**___**mech**___**to**___**oid**(_const_ _char_ _*mech_, _gss_OID_ _*oid_ret_);

## DESCRIPTION
     This function returns the GSS OID associated with the GSS_API mechanism "mech".

## PARAMETERS
     mech     The name of a GSS_API mechanism.  "kerberos_v5" is currently the only supported mecha‐
              nism.

     oid_ret  Buffer in which to place the returned OID

## RETURN VALUES
     If the GSS_API mechanism name is recognized, TRUE is returned.  The corresponding GSS-API oid
     is returned in _*oid_ret_.  Otherwise FALSE is returned and _*oid_ret_ is left untouched.

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