home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Unix / rpc⁄auth_unix.h < prev    next >
Encoding:
Text File  |  1988-07-15  |  1.0 KB  |  44 lines  |  [TEXT/MPS ]

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