# phpman > man > rpc_clnt_auth(3t)

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

## NAME
     **auth**___**destroy**, **authnone**___**create**, **authsys**___**create**, **authsys**___**create**___**default** — library routines for
     client side remote procedure call authentication

## SYNOPSIS
### #include <rpc/rpc.h>

     _void_
     **auth**___**destroy**(_AUTH_ _*auth_);

     _AUTH_ _*_
     **authnone**___**create**(_void_);

     _AUTH_ _*_
     **authsys**___**create**(_const_ _char_ _*host_, _const_ _uid_t_ _uid_, _const_ _gid_t_ _gid_, _const_ _int_ _len_,
         _const_ _gid_t_ _*aup_gids_);

     _AUTH_ _*_
     **authsys**___**create**___**default**(_void_);

## DESCRIPTION
     These routines are part of the RPC library that allows C language programs to make procedure
     calls on other machines across the network, with desired authentication.

     These routines are normally called after creating the _CLIENT_ handle.  The _cl_auth_ field of the
     _CLIENT_ structure should be initialized by the _AUTH_ structure returned by some of the following
     routines.  The client's authentication information is passed to the server when the RPC call is
     made.

     Only the NULL and the SYS style of authentication is discussed here.

## Routines
     **auth**___**destroy**()            A function macro that destroys the authentication information associ‐
                               ated with _auth_.  Destruction usually involves deallocation of private
                               data structures.  The use of _auth_ is undefined after calling
                               **auth**___**destroy**().

     **authnone**___**create**()         Create and return an RPC authentication handle that passes nonusable
                               authentication information with each remote procedure call.  This is
                               the default authentication used by RPC.

     **authsys**___**create**()          Create and return an RPC authentication handle that contains AUTH_SYS
                               authentication information.  The _host_ argument is the name of the ma‐
                               chine on which the information was created; _uid_ is the user's user
                               ID; _gid_ is the user's current group ID; _len_ and _aup_gids_ refer to a
                               counted array of groups to which the user belongs.

     **authsys**___**create**___**default**()  Call **authsys**___**create**() with the appropriate arguments.

## AVAILABILITY
     These functions are part of libtirpc.

## SEE ALSO
     [rpc(3)](https://www.chedong.com/phpMan.php/man/rpc/3/markdown), [rpc_clnt_calls(3)](https://www.chedong.com/phpMan.php/man/rpcclntcalls/3/markdown), [rpc_clnt_create(3)](https://www.chedong.com/phpMan.php/man/rpcclntcreate/3/markdown)

BSD                               May 7, 1993                              BSD
