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