home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / rpc / h / auth_unix next >
Encoding:
Text File  |  1995-01-11  |  2.7 KB  |  88 lines

  1. /* -*-C-*-
  2.  *
  3.  * $Header: /ax/networking:include/rpc/auth_unix.h:networking  1.1  $
  4.  * $Source: /ax/networking:include/rpc/auth_unix.h: $
  5.  *
  6.  * Copyright (c) 1995 Acorn Computers Ltd., Cambridge, England
  7.  *
  8.  * $Log:    auth_unix.h,v $
  9.  * Revision 1.1  95/01/11  10:18:26  kwelton
  10.  * Initial revision
  11.  * 
  12.  */
  13.  
  14. /* @(#)auth_unix.h    2.2 88/07/29 4.0 RPCSRC; from 1.8 88/02/08 SMI */
  15. /*
  16.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  17.  * unrestricted use provided that this legend is included on all tape
  18.  * media and as a part of the software program in whole or part.  Users
  19.  * may copy or modify Sun RPC without charge, but are not authorized
  20.  * to license or distribute it to anyone else except as part of a product or
  21.  * program developed by the user.
  22.  * 
  23.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  24.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  25.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  26.  * 
  27.  * Sun RPC is provided with no support and without any obligation on the
  28.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  29.  * modification or enhancement.
  30.  * 
  31.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  32.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  33.  * OR ANY PART THEREOF.
  34.  * 
  35.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  36.  * or profits or other special, indirect and consequential damages, even if
  37.  * Sun has been advised of the possibility of such damages.
  38.  * 
  39.  * Sun Microsystems, Inc.
  40.  * 2550 Garcia Avenue
  41.  * Mountain View, California  94043
  42.  */
  43. /*      @(#)auth_unix.h 1.5 86/07/16 SMI      */
  44.  
  45. /*
  46.  * auth_unix.h, Protocol for UNIX style authentication parameters for RPC
  47.  *
  48.  * Copyright (C) 1984, Sun Microsystems, Inc.
  49.  */
  50.  
  51. /*
  52.  * The system is very weak.  The client uses no encryption for  it
  53.  * credentials and only sends null verifiers.  The server sends backs
  54.  * null verifiers or optionally a verifier that suggests a new short hand
  55.  * for the credentials.
  56.  */
  57.  
  58. /* The machine name is part of a credential; it may not exceed 255 bytes */
  59. #define MAX_MACHINE_NAME 255
  60.  
  61. /* gids compose part of a credential; there may not be more than 16 of them */
  62. #define NGRPS 16
  63.  
  64. /*
  65.  * Unix style credentials.
  66.  */
  67. struct authunix_parms {
  68.     u_long     aup_time;
  69.     char    *aup_machname;
  70.     int     aup_uid;
  71.     int     aup_gid;
  72.     u_int     aup_len;
  73.     int    *aup_gids;
  74. };
  75.  
  76. extern bool_t xdr_authunix_parms();
  77.  
  78. /* 
  79.  * If a response verifier has flavor AUTH_SHORT, 
  80.  * then the body of the response verifier encapsulates the following structure;
  81.  * again it is serialized in the obvious fashion.
  82.  */
  83. struct short_hand_verf {
  84.     struct opaque_auth new_cred;
  85. };
  86.  
  87. /* EOF auth_unix.h */
  88.