00001 /* $Id$ */ 00002 /* $OpenBSD: auth_unix.h,v 1.2 1997/09/21 10:46:09 niklas Exp $ */ 00003 /* $NetBSD: auth_unix.h,v 1.4 1994/10/26 00:56:56 cgd Exp $ */ 00004 00005 /* 00006 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 00007 * unrestricted use provided that this legend is included on all tape 00008 * media and as a part of the software program in whole or part. Users 00009 * may copy or modify Sun RPC without charge, but are not authorized 00010 * to license or distribute it to anyone else except as part of a product or 00011 * program developed by the user. 00012 * 00013 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 00014 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 00015 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 00016 * 00017 * Sun RPC is provided with no support and without any obligation on the 00018 * part of Sun Microsystems, Inc. to assist in its use, correction, 00019 * modification or enhancement. 00020 * 00021 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 00022 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 00023 * OR ANY PART THEREOF. 00024 * 00025 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 00026 * or profits or other special, indirect and consequential damages, even if 00027 * Sun has been advised of the possibility of such damages. 00028 * 00029 * Sun Microsystems, Inc. 00030 * 2550 Garcia Avenue 00031 * Mountain View, California 94043 00032 * 00033 * from: @(#)auth_unix.h 1.8 88/02/08 SMI 00034 * @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC 00035 */ 00036 00037 /* 00038 * auth_unix.h, Protocol for UNIX style authentication parameters for RPC 00039 * 00040 * Copyright (C) 1984, Sun Microsystems, Inc. 00041 */ 00042 00043 /* 00044 * The system is very weak. The client uses no encryption for it 00045 * credentials and only sends null verifiers. The server sends backs 00046 * null verifiers or optionally a verifier that suggests a new short hand 00047 * for the credentials. 00048 */ 00049 00050 #ifndef _RPC_AUTH_UNIX_H 00051 #define _RPC_AUTH_UNIX_H 00052 #include <sys/cdefs.h> 00053 00054 /* The machine name is part of a credential; it may not exceed 255 bytes */ 00055 #define MAX_MACHINE_NAME 255 00056 00057 /* gids compose part of a credential; there may not be more than 16 of them */ 00058 #define NGRPS 16 00059 00060 /* 00061 * Unix style credentials. 00062 */ 00063 struct authunix_parms { 00064 u_long aup_time; 00065 char *aup_machname; 00066 int aup_uid; 00067 int aup_gid; 00068 u_int aup_len; 00069 int *aup_gids; 00070 }; 00071 00072 __BEGIN_DECLS 00073 extern bool_t xdr_authunix_parms __P((XDR *, struct authunix_parms *)); 00074 __END_DECLS 00075 00076 /* 00077 * If a response verifier has flavor AUTH_SHORT, 00078 * then the body of the response verifier encapsulates the following structure; 00079 * again it is serialized in the obvious fashion. 00080 */ 00081 struct short_hand_verf { 00082 struct opaque_auth new_cred; 00083 }; 00084 00085 #endif /* !_RPC_AUTH_UNIX_H */