home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / rpc / key_prot.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.5 KB  |  122 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/rpc/key_prot.h.sl 1.1 4.0 12/08/90 55877 AT&T-USL"
  11.  
  12. /* @(#)key_prot.h 1.1 88/12/14 Copyr 1986 Sun Micro */
  13.  
  14. /*
  15.  *          PROPRIETARY NOTICE (Combined)
  16.  *  
  17.  *  This source code is unpublished proprietary information
  18.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  19.  *  In addition, portions of such source code were derived from Berkeley
  20.  *  4.3 BSD under license from the Regents of the University of
  21.  *  California.
  22.  *  
  23.  *  
  24.  *  
  25.  *          Copyright Notice 
  26.  *  
  27.  *  Notice of copyright on this source code product does not indicate 
  28.  *  publication.
  29.  *  
  30.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  31.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.  *                All rights reserved.
  33.  */
  34.  
  35. /*    @(#)key_prot.h 1.4 89/05/01 SMI    */
  36.  
  37. /* 
  38.  * Compiled from key_prot.x using rpcgen.
  39.  * DO NOT EDIT THIS FILE!
  40.  * This is NOT source code!
  41.  */
  42.  
  43. #ifndef _RPC_KEY_PROT_H
  44. #define _RPC_KEY_PROT_H
  45.  
  46. #define KEY_PROG 100029
  47. #define KEY_VERS 1
  48. #define KEY_SET 1
  49. #define KEY_ENCRYPT 2
  50. #define KEY_DECRYPT 3
  51. #define KEY_GEN 4
  52. #define KEY_GETCRED 5
  53.  
  54. #define PROOT 3
  55. #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
  56. #define HEXKEYBYTES 48
  57. #define KEYSIZE 192
  58. #define KEYBYTES 24
  59. #define KEYCHECKSUMSIZE 16
  60.  
  61. enum keystatus {
  62.     KEY_SUCCESS = 0,
  63.     KEY_NOSECRET = 1,
  64.     KEY_UNKNOWN = 2,
  65.     KEY_SYSTEMERR = 3
  66. };
  67. typedef enum keystatus keystatus;
  68. bool_t xdr_keystatus();
  69.  
  70. #ifndef _KERNEL
  71.  
  72. typedef char keybuf[HEXKEYBYTES];
  73. bool_t xdr_keybuf();
  74.  
  75. #endif
  76.  
  77. typedef char *netnamestr;
  78. bool_t xdr_netnamestr();
  79.  
  80.  
  81. struct cryptkeyarg {
  82.     netnamestr remotename;
  83.     des_block deskey;
  84. };
  85. typedef struct cryptkeyarg cryptkeyarg;
  86. bool_t xdr_cryptkeyarg();
  87.  
  88.  
  89. struct cryptkeyres {
  90.     keystatus status;
  91.     union {
  92.         des_block deskey;
  93.     } cryptkeyres_u;
  94. };
  95. typedef struct cryptkeyres cryptkeyres;
  96. bool_t xdr_cryptkeyres();
  97.  
  98. #define MAXGIDS 16
  99.  
  100. struct unixcred {
  101.     uid_t uid;
  102.     uid_t gid;
  103.     struct {
  104.         u_int gids_len;
  105.         u_int *gids_val;
  106.     } gids;
  107. };
  108. typedef struct unixcred unixcred;
  109. bool_t xdr_unixcred();
  110.  
  111.  
  112. struct getcredres {
  113.     keystatus status;
  114.     union {
  115.         unixcred cred;
  116.     } getcredres_u;
  117. };
  118. typedef struct getcredres getcredres;
  119. bool_t xdr_getcredres();
  120.  
  121. #endif /*!_rpc_key_prot_h*/
  122.