home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / stack16 / rpc / auth_uni.h next >
C/C++ Source or Header  |  1999-05-11  |  4KB  |  93 lines

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