Path: blob/main/crypto/krb5/src/include/gssrpc/auth_unix.h
34914 views
/* @(#)auth_unix.h 2.2 88/07/29 4.0 RPCSRC; from 1.8 88/02/08 SMI */1/*2* Copyright (c) 2010, Oracle America, Inc.3*4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions are met:8*9* * Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*12* * Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in14* the documentation and/or other materials provided with the15* distribution.16*17* * Neither the name of the "Oracle America, Inc." nor the names of18* its contributors may be used to endorse or promote products19* derived from this software without specific prior written permission.20*21* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS22* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED23* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A24* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT25* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,26* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED27* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR28* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF29* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING30* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS31* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32*/33/* @(#)auth_unix.h 1.5 86/07/16 SMI */3435/*36* auth_unix.h, Protocol for UNIX style authentication parameters for RPC37*/3839#ifndef GSSRPC_AUTH_UNIX_H40#define GSSRPC_AUTH_UNIX_H4142GSSRPC__BEGIN_DECLS43/*44* The system is very weak. The client uses no encryption for it45* credentials and only sends null verifiers. The server sends backs46* null verifiers or optionally a verifier that suggests a new short hand47* for the credentials.48*/4950/* The machine name is part of a credential; it may not exceed 255 bytes */51#define MAX_MACHINE_NAME 2555253/* gids compose part of a credential; there may not be more than 16 of them */54#define NGRPS 165556/*57* Unix style credentials.58*/59struct authunix_parms {60uint32_t aup_time;61char *aup_machname;62int aup_uid;63int aup_gid;64u_int aup_len;65int *aup_gids;66};6768extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *);6970/*71* If a response verifier has flavor AUTH_SHORT,72* then the body of the response verifier encapsulates the following structure;73* again it is serialized in the obvious fashion.74*/75struct short_hand_verf {76struct opaque_auth new_cred;77};7879GSSRPC__END_DECLS8081#endif /* !defined(GSSRPC_AUTH_UNIX_H) */828384