|
||||
File indexing completed on 2025-01-30 10:25:05
0001 /* 0002 * Copyright (c) 2009, Sun Microsystems, Inc. 0003 * All rights reserved. 0004 * 0005 * Redistribution and use in source and binary forms, with or without 0006 * modification, are permitted provided that the following conditions are met: 0007 * - Redistributions of source code must retain the above copyright notice, 0008 * this list of conditions and the following disclaimer. 0009 * - Redistributions in binary form must reproduce the above copyright notice, 0010 * this list of conditions and the following disclaimer in the documentation 0011 * and/or other materials provided with the distribution. 0012 * - Neither the name of Sun Microsystems, Inc. nor the names of its 0013 * contributors may be used to endorse or promote products derived 0014 * from this software without specific prior written permission. 0015 * 0016 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0017 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0018 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0019 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 0020 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0021 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0022 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0023 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0024 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0025 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0026 * POSSIBILITY OF SUCH DAMAGE. 0027 * 0028 * from: @(#)auth_unix.h 1.8 88/02/08 SMI 0029 * from: @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC 0030 * $FreeBSD: src/include/rpc/auth_unix.h,v 1.11 2002/03/23 17:24:55 imp Exp $ 0031 */ 0032 0033 /* 0034 * auth_unix.h, Protocol for UNIX style authentication parameters for RPC 0035 * 0036 * Copyright (C) 1984, Sun Microsystems, Inc. 0037 */ 0038 0039 /* 0040 * The system is very weak. The client uses no encryption for it 0041 * credentials and only sends null verifiers. The server sends backs 0042 * null verifiers or optionally a verifier that suggests a new short hand 0043 * for the credentials. 0044 */ 0045 0046 #ifndef _TIRPC_AUTH_UNIX_H 0047 #define _TIRPC_AUTH_UNIX_H 0048 0049 /* The machine name is part of a credential; it may not exceed 255 bytes */ 0050 #define MAX_MACHINE_NAME 255 0051 0052 /* gids compose part of a credential; there may not be more than 16 of them */ 0053 #define NGRPS 16 0054 0055 /* 0056 * Unix style credentials. 0057 */ 0058 struct authunix_parms { 0059 u_long aup_time; 0060 char *aup_machname; 0061 uid_t aup_uid; 0062 gid_t aup_gid; 0063 u_int aup_len; 0064 gid_t *aup_gids; 0065 }; 0066 0067 #define authsys_parms authunix_parms 0068 0069 #ifdef __cplusplus 0070 extern "C" { 0071 #endif 0072 extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *); 0073 #ifdef __cplusplus 0074 } 0075 #endif 0076 0077 /* 0078 * If a response verifier has flavor AUTH_SHORT, 0079 * then the body of the response verifier encapsulates the following structure; 0080 * again it is serialized in the obvious fashion. 0081 */ 0082 struct short_hand_verf { 0083 struct opaque_auth new_cred; 0084 }; 0085 0086 #endif /* !_TIRPC_AUTH_UNIX_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |