# phpman > man > RPC_GSS_GETCRED(3)

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

## NAME
     **rpc**___**gss**___**getcred** — Get authorization information for an RPC request

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

     _AUTH_ _*_
     **rpc**___**gss**___**getcred**(_struct_ _svc_req_ _*req_, _rpc_gss_rawcred_t_ _**rcred_, _rpc_gss_ucred_t_ _**ucred_,
         _void_ _**cookie_);

## DESCRIPTION
     This function returns the RPCSEC_GSS authenticated credentials associated with an RPC request.

## PARAMETERS
     req       The RPC request to query

     rcred     If non-null, _*rcred_ is set to point at the raw credentials for this request

     ucred     If non-null, _*ucred_ is set to point at the corresponding unix credentials

     cookie    If non-null, _*cookie_ is set to the cookie value returned by a callback function reg‐
               istered with **rpc**___**gss**___**set**___**callback**()

## RETURN VALUES
     Returns TRUE if successful, FALSE otherwise.

## AVAILABILITY
     The **rpc**___**gss**___**getcred**() 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), [rpc_gss_set_callback(3)](https://www.chedong.com/phpMan.php/man/rpcgsssetcallback/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
