home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / rpc / key_prot.h < prev    next >
C/C++ Source or Header  |  1991-06-21  |  1KB  |  86 lines

  1. /*    @(#)key_prot.h    1.1 88/03/04 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  * 1.4 87/03/10 Copyr 1986 Sun Micro 
  6.  */
  7.  
  8.  
  9. /* 
  10.  * Compiled from key_prot.x using rpcgen.
  11.  * DO NOT EDIT THIS FILE!
  12.  * This is NOT source code!
  13.  */
  14.  
  15. #define KEY_PROG 100029
  16. #define KEY_VERS 1
  17. #define KEY_SET 1
  18. #define KEY_ENCRYPT 2
  19. #define KEY_DECRYPT 3
  20. #define KEY_GEN 4
  21. #define KEY_GETCRED 5
  22.  
  23. #define PROOT 3
  24. #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
  25. #define HEXKEYBYTES 48
  26. #define KEYSIZE 192
  27. #define KEYBYTES 24
  28. #define KEYCHECKSUMSIZE 16
  29.  
  30. enum keystatus {
  31.     KEY_SUCCESS = 0,
  32.     KEY_NOSECRET = 1,
  33.     KEY_UNKNOWN = 2,
  34.     KEY_SYSTEMERR = 3,
  35. };
  36. typedef enum keystatus keystatus;
  37. bool_t xdr_keystatus();
  38.  
  39. typedef char keybuf[HEXKEYBYTES];
  40. bool_t xdr_keybuf();
  41.  
  42. typedef char *netnamestr;
  43. bool_t xdr_netnamestr();
  44.  
  45.  
  46. struct cryptkeyarg {
  47.     netnamestr remotename;
  48.     des_block deskey;
  49. };
  50. typedef struct cryptkeyarg cryptkeyarg;
  51. bool_t xdr_cryptkeyarg();
  52.  
  53.  
  54. struct cryptkeyres {
  55.     keystatus status;
  56.     union {
  57.         des_block deskey;
  58.     } cryptkeyres_u;
  59. };
  60. typedef struct cryptkeyres cryptkeyres;
  61. bool_t xdr_cryptkeyres();
  62.  
  63. #define MAXGIDS 16
  64.  
  65. struct unixcred {
  66.     int uid;
  67.     int gid;
  68.     struct {
  69.         u_int gids_len;
  70.         int *gids_val;
  71.     } gids;
  72. };
  73. typedef struct unixcred unixcred;
  74. bool_t xdr_unixcred();
  75.  
  76.  
  77. struct getcredres {
  78.     keystatus status;
  79.     union {
  80.         unixcred cred;
  81.     } getcredres_u;
  82. };
  83. typedef struct getcredres getcredres;
  84. bool_t xdr_getcredres();
  85.  
  86.