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