key_prot.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _KEY_PROT_H_RPCGEN
  6. #define _KEY_PROT_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. /*
  9. * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  10. * unrestricted use provided that this legend is included on all tape
  11. * media and as a part of the software program in whole or part. Users
  12. * may copy or modify Sun RPC without charge, but are not authorized
  13. * to license or distribute it to anyone else except as part of a product or
  14. * program developed by the user.
  15. *
  16. * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  17. * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  18. * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  19. *
  20. * Sun RPC is provided with no support and without any obligation on the
  21. * part of Sun Microsystems, Inc. to assist in its use, correction,
  22. * modification or enhancement.
  23. *
  24. * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  25. * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  26. * OR ANY PART THEREOF.
  27. *
  28. * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  29. * or profits or other special, indirect and consequential damages, even if
  30. * Sun has been advised of the possibility of such damages.
  31. *
  32. * Sun Microsystems, Inc.
  33. * 2550 Garcia Avenue
  34. * Mountain View, California 94043
  35. */
  36. #if 0
  37. #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI"
  38. #endif
  39. /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
  40. /*
  41. * Compiled from key_prot.x using rpcgen.
  42. * DO NOT EDIT THIS FILE!
  43. * This is NOT source code!
  44. */
  45. #define PROOT 3
  46. #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
  47. #define HEXKEYBYTES 48
  48. #define KEYSIZE 192
  49. #define KEYBYTES 24
  50. #define KEYCHECKSUMSIZE 16
  51. enum keystatus {
  52. KEY_SUCCESS = 0,
  53. KEY_NOSECRET = 1,
  54. KEY_UNKNOWN = 2,
  55. KEY_SYSTEMERR = 3,
  56. };
  57. typedef enum keystatus keystatus;
  58. #ifdef __cplusplus
  59. extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
  60. #elif __STDC__
  61. extern bool_t xdr_keystatus(XDR *, keystatus*);
  62. #else /* Old Style C */
  63. bool_t xdr_keystatus();
  64. #endif /* Old Style C */
  65. typedef char keybuf[HEXKEYBYTES];
  66. #ifdef __cplusplus
  67. extern "C" bool_t xdr_keybuf(XDR *, keybuf);
  68. #elif __STDC__
  69. extern bool_t xdr_keybuf(XDR *, keybuf);
  70. #else /* Old Style C */
  71. bool_t xdr_keybuf();
  72. #endif /* Old Style C */
  73. typedef char *netnamestr;
  74. #ifdef __cplusplus
  75. extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
  76. #elif __STDC__
  77. extern bool_t xdr_netnamestr(XDR *, netnamestr*);
  78. #else /* Old Style C */
  79. bool_t xdr_netnamestr();
  80. #endif /* Old Style C */
  81. struct cryptkeyarg {
  82. netnamestr remotename;
  83. des_block deskey;
  84. };
  85. typedef struct cryptkeyarg cryptkeyarg;
  86. #ifdef __cplusplus
  87. extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
  88. #elif __STDC__
  89. extern bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
  90. #else /* Old Style C */
  91. bool_t xdr_cryptkeyarg();
  92. #endif /* Old Style C */
  93. struct cryptkeyarg2 {
  94. netnamestr remotename;
  95. netobj remotekey;
  96. des_block deskey;
  97. };
  98. typedef struct cryptkeyarg2 cryptkeyarg2;
  99. #ifdef __cplusplus
  100. extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
  101. #elif __STDC__
  102. extern bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
  103. #else /* Old Style C */
  104. bool_t xdr_cryptkeyarg2();
  105. #endif /* Old Style C */
  106. struct cryptkeyres {
  107. keystatus status;
  108. union {
  109. des_block deskey;
  110. } cryptkeyres_u;
  111. };
  112. typedef struct cryptkeyres cryptkeyres;
  113. #ifdef __cplusplus
  114. extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
  115. #elif __STDC__
  116. extern bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
  117. #else /* Old Style C */
  118. bool_t xdr_cryptkeyres();
  119. #endif /* Old Style C */
  120. #define MAXGIDS 16
  121. struct unixcred {
  122. u_int uid;
  123. u_int gid;
  124. struct {
  125. u_int gids_len;
  126. u_int *gids_val;
  127. } gids;
  128. };
  129. typedef struct unixcred unixcred;
  130. #ifdef __cplusplus
  131. extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
  132. #elif __STDC__
  133. extern bool_t xdr_unixcred(XDR *, unixcred*);
  134. #else /* Old Style C */
  135. bool_t xdr_unixcred();
  136. #endif /* Old Style C */
  137. struct getcredres {
  138. keystatus status;
  139. union {
  140. unixcred cred;
  141. } getcredres_u;
  142. };
  143. typedef struct getcredres getcredres;
  144. #ifdef __cplusplus
  145. extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
  146. #elif __STDC__
  147. extern bool_t xdr_getcredres(XDR *, getcredres*);
  148. #else /* Old Style C */
  149. bool_t xdr_getcredres();
  150. #endif /* Old Style C */
  151. struct key_netstarg {
  152. keybuf st_priv_key;
  153. keybuf st_pub_key;
  154. netnamestr st_netname;
  155. };
  156. typedef struct key_netstarg key_netstarg;
  157. #ifdef __cplusplus
  158. extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
  159. #elif __STDC__
  160. extern bool_t xdr_key_netstarg(XDR *, key_netstarg*);
  161. #else /* Old Style C */
  162. bool_t xdr_key_netstarg();
  163. #endif /* Old Style C */
  164. struct key_netstres {
  165. keystatus status;
  166. union {
  167. key_netstarg knet;
  168. } key_netstres_u;
  169. };
  170. typedef struct key_netstres key_netstres;
  171. #ifdef __cplusplus
  172. extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
  173. #elif __STDC__
  174. extern bool_t xdr_key_netstres(XDR *, key_netstres*);
  175. #else /* Old Style C */
  176. bool_t xdr_key_netstres();
  177. #endif /* Old Style C */
  178. #ifndef opaque
  179. #define opaque char
  180. #endif
  181. #define KEY_PROG ((u_long)100029)
  182. #define KEY_VERS ((u_long)1)
  183. #ifdef __cplusplus
  184. #define KEY_SET ((u_long)1)
  185. extern "C" keystatus * key_set_1(opaque *, CLIENT *);
  186. extern "C" keystatus * key_set_1_svc(opaque *, struct svc_req *);
  187. #define KEY_ENCRYPT ((u_long)2)
  188. extern "C" cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
  189. extern "C" cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
  190. #define KEY_DECRYPT ((u_long)3)
  191. extern "C" cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
  192. extern "C" cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
  193. #define KEY_GEN ((u_long)4)
  194. extern "C" des_block * key_gen_1(void *, CLIENT *);
  195. extern "C" des_block * key_gen_1_svc(void *, struct svc_req *);
  196. #define KEY_GETCRED ((u_long)5)
  197. extern "C" getcredres * key_getcred_1(netnamestr *, CLIENT *);
  198. extern "C" getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
  199. #elif __STDC__
  200. #define KEY_SET ((u_long)1)
  201. extern keystatus * key_set_1(opaque *, CLIENT *);
  202. extern keystatus * key_set_1_svc(opaque *, struct svc_req *);
  203. #define KEY_ENCRYPT ((u_long)2)
  204. extern cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
  205. extern cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
  206. #define KEY_DECRYPT ((u_long)3)
  207. extern cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
  208. extern cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
  209. #define KEY_GEN ((u_long)4)
  210. extern des_block * key_gen_1(void *, CLIENT *);
  211. extern des_block * key_gen_1_svc(void *, struct svc_req *);
  212. #define KEY_GETCRED ((u_long)5)
  213. extern getcredres * key_getcred_1(netnamestr *, CLIENT *);
  214. extern getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
  215. #else /* Old Style C */
  216. #define KEY_SET ((u_long)1)
  217. extern keystatus * key_set_1();
  218. extern keystatus * key_set_1_svc();
  219. #define KEY_ENCRYPT ((u_long)2)
  220. extern cryptkeyres * key_encrypt_1();
  221. extern cryptkeyres * key_encrypt_1_svc();
  222. #define KEY_DECRYPT ((u_long)3)
  223. extern cryptkeyres * key_decrypt_1();
  224. extern cryptkeyres * key_decrypt_1_svc();
  225. #define KEY_GEN ((u_long)4)
  226. extern des_block * key_gen_1();
  227. extern des_block * key_gen_1_svc();
  228. #define KEY_GETCRED ((u_long)5)
  229. extern getcredres * key_getcred_1();
  230. extern getcredres * key_getcred_1_svc();
  231. #endif /* Old Style C */
  232. #define KEY_VERS2 ((u_long)2)
  233. #ifdef __cplusplus
  234. extern "C" keystatus * key_set_2(opaque *, CLIENT *);
  235. extern "C" keystatus * key_set_2_svc(opaque *, struct svc_req *);
  236. extern "C" cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
  237. extern "C" cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
  238. extern "C" cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
  239. extern "C" cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
  240. extern "C" des_block * key_gen_2(void *, CLIENT *);
  241. extern "C" des_block * key_gen_2_svc(void *, struct svc_req *);
  242. extern "C" getcredres * key_getcred_2(netnamestr *, CLIENT *);
  243. extern "C" getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
  244. #define KEY_ENCRYPT_PK ((u_long)6)
  245. extern "C" cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  246. extern "C" cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  247. #define KEY_DECRYPT_PK ((u_long)7)
  248. extern "C" cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  249. extern "C" cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  250. #define KEY_NET_PUT ((u_long)8)
  251. extern "C" keystatus * key_net_put_2(key_netstarg *, CLIENT *);
  252. extern "C" keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
  253. #define KEY_NET_GET ((u_long)9)
  254. extern "C" key_netstres * key_net_get_2(void *, CLIENT *);
  255. extern "C" key_netstres * key_net_get_2_svc(void *, struct svc_req *);
  256. #define KEY_GET_CONV ((u_long)10)
  257. extern "C" cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
  258. extern "C" cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
  259. #elif __STDC__
  260. extern keystatus * key_set_2(opaque *, CLIENT *);
  261. extern keystatus * key_set_2_svc(opaque *, struct svc_req *);
  262. extern cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
  263. extern cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
  264. extern cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
  265. extern cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
  266. extern des_block * key_gen_2(void *, CLIENT *);
  267. extern des_block * key_gen_2_svc(void *, struct svc_req *);
  268. extern getcredres * key_getcred_2(netnamestr *, CLIENT *);
  269. extern getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
  270. #define KEY_ENCRYPT_PK ((u_long)6)
  271. extern cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  272. extern cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  273. #define KEY_DECRYPT_PK ((u_long)7)
  274. extern cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  275. extern cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  276. #define KEY_NET_PUT ((u_long)8)
  277. extern keystatus * key_net_put_2(key_netstarg *, CLIENT *);
  278. extern keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
  279. #define KEY_NET_GET ((u_long)9)
  280. extern key_netstres * key_net_get_2(void *, CLIENT *);
  281. extern key_netstres * key_net_get_2_svc(void *, struct svc_req *);
  282. #define KEY_GET_CONV ((u_long)10)
  283. extern cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
  284. extern cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
  285. #else /* Old Style C */
  286. extern keystatus * key_set_2();
  287. extern keystatus * key_set_2_svc();
  288. extern cryptkeyres * key_encrypt_2();
  289. extern cryptkeyres * key_encrypt_2_svc();
  290. extern cryptkeyres * key_decrypt_2();
  291. extern cryptkeyres * key_decrypt_2_svc();
  292. extern des_block * key_gen_2();
  293. extern des_block * key_gen_2_svc();
  294. extern getcredres * key_getcred_2();
  295. extern getcredres * key_getcred_2_svc();
  296. #define KEY_ENCRYPT_PK ((u_long)6)
  297. extern cryptkeyres * key_encrypt_pk_2();
  298. extern cryptkeyres * key_encrypt_pk_2_svc();
  299. #define KEY_DECRYPT_PK ((u_long)7)
  300. extern cryptkeyres * key_decrypt_pk_2();
  301. extern cryptkeyres * key_decrypt_pk_2_svc();
  302. #define KEY_NET_PUT ((u_long)8)
  303. extern keystatus * key_net_put_2();
  304. extern keystatus * key_net_put_2_svc();
  305. #define KEY_NET_GET ((u_long)9)
  306. extern key_netstres * key_net_get_2();
  307. extern key_netstres * key_net_get_2_svc();
  308. #define KEY_GET_CONV ((u_long)10)
  309. extern cryptkeyres * key_get_conv_2();
  310. extern cryptkeyres * key_get_conv_2_svc();
  311. #endif /* Old Style C */
  312. #endif /* !_KEY_PROT_H_RPCGEN */