VMS Help  —  TCPIP Services, Programming Interfaces, RPC Client Routines, authunix_create_default
    Returns a default authentication handle.
    Format
      #include  <rpc/rpc.h>
      AUTH  *authunix_create_default( )

1  –  Arguments

 None

2  –  Description

    Calls the authunix_create routine with the local host name,
    effective process ID and group ID, and the process default
    groups.

3  –  Return Values

    AUTH *             Authentication handle containing the pertinent
                       information.
    NULL               Indicates allocation of AUTH handle failed.

4  –  Examples

    1.auth_destroy(client->cl_auth)
      client->cl_auth = authunix_create_default();
      This example overrides the default authnone_create action. The
      client handle, client, is returned by the clnt_create, clnt_
      create_vers, clnttcp_create, or clntudp_create routine.
Close Help