home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / rpc / auth_sys.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.3 KB  |  83 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/rpc/auth_sys.h.sl 1.1 4.0 12/08/90 9485 AT&T-USL"
  11.  
  12. /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  13. *    PROPRIETARY NOTICE (Combined)
  14. *
  15. * This source code is unpublished proprietary information
  16. * constituting, or derived under license from AT&T's UNIX(r) System V.
  17. * In addition, portions of such source code were derived from Berkeley
  18. * 4.3 BSD under license from the Regents of the University of
  19. * California.
  20. *
  21. *
  22. *
  23. *    Copyright Notice 
  24. *
  25. * Notice of copyright on this source code product does not indicate 
  26. *  publication.
  27. *
  28. *    (c) 1986,1987,1988.1989  Sun Microsystems, Inc
  29. *    (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  30. *          All rights reserved.
  31. */ 
  32.  
  33.  
  34. /*
  35.  * auth_sys.h, Protocol for UNIX style authentication parameters for RPC
  36.  *
  37.  */
  38.  
  39. #ifndef _RPC_AUTH_SYS_H
  40. #define _RPC_AUTH_SYS_H
  41.  
  42. /*
  43.  * The system is very weak.  The client uses no encryption for  it
  44.  * credentials and only sends null verifiers.  The server sends backs
  45.  * null verifiers or optionally a verifier that suggests a new short hand
  46.  * for the credentials.
  47.  */
  48.  
  49. /* The machine name is part of a credential; it may not exceed 255 bytes */
  50. #define MAX_MACHINE_NAME 255
  51.  
  52. /* gids compose part of a credential; there may not be more than 16 of them */
  53. #define NGRPS 16
  54.  
  55. /*
  56.  * "Unix" (sys) style credentials.
  57.  */
  58. struct authsys_parms {
  59.     u_long     aup_time;
  60.     char    *aup_machname;
  61.     uid_t     aup_uid;
  62.     gid_t     aup_gid;
  63.     u_int     aup_len;
  64.     gid_t    *aup_gids;
  65. };
  66. /* For backword compatibility */
  67. #define authunix_parms authsys_parms
  68.  
  69. extern bool_t xdr_authsys_parms();
  70. /* For backword compatibility. Will get obsolete */
  71. #define xdr_authunix_parms(xdrs, p) xdr_authsys_parms(xdrs, p)
  72.  
  73. /* 
  74.  * If a response verifier has flavor AUTH_SHORT, 
  75.  * then the body of the response verifier encapsulates the following structure;
  76.  * again it is serialized in the obvious fashion.
  77.  */
  78. struct short_hand_verf {
  79.     struct opaque_auth new_cred;
  80. };
  81.  
  82. #endif /* !_RPC_AUTH_SYS_H */
  83.