home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / rpc / auth_unix.h < prev    next >
C/C++ Source or Header  |  1991-07-15  |  1KB  |  48 lines

  1. /*    @(#)auth_unix.h    1.1 88/03/04 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  *  1.8 88/02/08 SMI   
  6.  */
  7.  
  8.  
  9. /*
  10.  * auth_unix.h, Protocol for UNIX style authentication parameters for RPC
  11.  */
  12.  
  13. /*
  14.  * The system is very weak.  The client uses no encryption for  it
  15.  * credentials and only sends null verifiers.  The server sends backs
  16.  * null verifiers or optionally a verifier that suggests a new short hand
  17.  * for the credentials.
  18.  */
  19.  
  20. /* The machine name is part of a credential; it may not exceed 255 bytes */
  21. #define MAX_MACHINE_NAME 255
  22.  
  23. /* gids compose part of a credential; there may not be more than 16 of them */
  24. #define NGRPS 16
  25.  
  26. /*
  27.  * Unix style credentials.
  28.  */
  29. struct authunix_parms {
  30.     u_long     aup_time;
  31.     char    *aup_machname;
  32.     int     aup_uid;
  33.     int     aup_gid;
  34.     u_int     aup_len;
  35.     int    *aup_gids;
  36. };
  37.  
  38. extern bool_t xdr_authunix_parms();
  39.  
  40. /* 
  41.  * If a response verifier has flavor AUTH_SHORT, 
  42.  * then the body of the response verifier encapsulates the following structure;
  43.  * again it is serialized in the obvious fashion.
  44.  */
  45. struct short_hand_verf {
  46.     struct opaque_auth new_cred;
  47. };
  48.