Import TBBT (NFS trace replay).
[bluesky.git] / TBBT / trace_play / rpc / auth_unix.h
1 /*
2  * @(#)auth_unix.h     2.1     97/10/23
3  */
4
5 /* @(#)auth_unix.h      2.2 88/07/29 4.0 RPCSRC; from 1.8 88/02/08 SMI */
6 /*
7  *   Copyright (c) 1992-1997,2001 by Standard Performance Evaluation Corporation
8  *      All rights reserved.
9  *              Standard Performance Evaluation Corporation (SPEC)
10  *              6585 Merchant Place, Suite 100
11  *              Warrenton, VA 20187
12  *
13  *      This product contains benchmarks acquired from several sources who
14  *      understand and agree with SPEC's goal of creating fair and objective
15  *      benchmarks to measure computer performance.
16  *
17  *      This copyright notice is placed here only to protect SPEC in the
18  *      event the source is misused in any manner that is contrary to the
19  *      spirit, the goals and the intent of SPEC.
20  *
21  *      The source code is provided to the user or company under the license
22  *      agreement for the SPEC Benchmark Suite for this product.
23  */
24 /*
25  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
26  * unrestricted use provided that this legend is included on all tape
27  * media and as a part of the software program in whole or part.  Users
28  * may copy or modify Sun RPC without charge, but are not authorized
29  * to license or distribute it to anyone else except as part of a product or
30  * program developed by the user.
31  * 
32  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
33  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
34  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
35  * 
36  * Sun RPC is provided with no support and without any obligation on the
37  * part of Sun Microsystems, Inc. to assist in its use, correction,
38  * modification or enhancement.
39  * 
40  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
41  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
42  * OR ANY PART THEREOF.
43  * 
44  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
45  * or profits or other special, indirect and consequential damages, even if
46  * Sun has been advised of the possibility of such damages.
47  * 
48  * Sun Microsystems, Inc.
49  * 2550 Garcia Avenue
50  * Mountain View, California  94043
51  */
52 /*      @(#)auth_unix.h 1.5 86/07/16 SMI      */
53
54 /*
55  * auth_unix.h, Protocol for UNIX style authentication parameters for RPC
56  *
57  * Copyright (C) 1984, Sun Microsystems, Inc.
58  */
59
60
61 /*
62  * The system is very weak.  The client uses no encryption for  it
63  * credentials and only sends null verifiers.  The server sends backs
64  * null verifiers or optionally a verifier that suggests a new short hand
65  * for the credentials.
66  */
67
68 /* The machine name is part of a credential; it may not exceed 255 bytes */
69 #define MAX_MACHINE_NAME 255
70
71 /* gids compose part of a credential; there may not be more than 16 of them */
72 #define NGRPS 16
73
74 /*
75  * Unix style credentials.
76  */
77 struct authunix_parms {
78         uint32_t aup_time;
79         char    *aup_machname;
80         int      aup_uid;
81         int      aup_gid;
82         uint_t   aup_len;
83         int     *aup_gids;
84 };
85
86 extern bool_t xdr_authunix_parms();
87
88 /* 
89  * If a response verifier has flavor AUTH_SHORT, 
90  * then the body of the response verifier encapsulates the following structure;
91  * again it is serialized in the obvious fashion.
92  */
93 struct short_hand_verf {
94         struct opaque_auth new_cred;
95 };