key_prot.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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. /* Copyright (c) 2010, Oracle America, Inc.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions are
  12. * met:
  13. *
  14. * * Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. * * Redistributions in binary form must reproduce the above
  17. * copyright notice, this list of conditions and the following
  18. * disclaimer in the documentation and/or other materials
  19. * provided with the distribution.
  20. * * Neither the name of the "Oracle America, Inc." nor the names of its
  21. * contributors may be used to endorse or promote products derived
  22. * from this software without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  27. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  28. * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  29. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  31. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  32. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  33. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  34. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  35. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36. */
  37. /*
  38. * Compiled from key_prot.x using rpcgen.
  39. * DO NOT EDIT THIS FILE!
  40. * This is NOT source code!
  41. */
  42. #define PROOT 3
  43. #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
  44. #define HEXKEYBYTES 48
  45. #define KEYSIZE 192
  46. #define KEYBYTES 24
  47. #define KEYCHECKSUMSIZE 16
  48. enum keystatus {
  49. KEY_SUCCESS = 0,
  50. KEY_NOSECRET = 1,
  51. KEY_UNKNOWN = 2,
  52. KEY_SYSTEMERR = 3,
  53. };
  54. typedef enum keystatus keystatus;
  55. #ifdef __cplusplus
  56. extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
  57. #elif __STDC__
  58. extern bool_t xdr_keystatus(XDR *, keystatus*);
  59. #else /* Old Style C */
  60. bool_t xdr_keystatus();
  61. #endif /* Old Style C */
  62. typedef char keybuf[HEXKEYBYTES];
  63. #ifdef __cplusplus
  64. extern "C" bool_t xdr_keybuf(XDR *, keybuf);
  65. #elif __STDC__
  66. extern bool_t xdr_keybuf(XDR *, keybuf);
  67. #else /* Old Style C */
  68. bool_t xdr_keybuf();
  69. #endif /* Old Style C */
  70. typedef char *netnamestr;
  71. #ifdef __cplusplus
  72. extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
  73. #elif __STDC__
  74. extern bool_t xdr_netnamestr(XDR *, netnamestr*);
  75. #else /* Old Style C */
  76. bool_t xdr_netnamestr();
  77. #endif /* Old Style C */
  78. struct cryptkeyarg {
  79. netnamestr remotename;
  80. des_block deskey;
  81. };
  82. typedef struct cryptkeyarg cryptkeyarg;
  83. #ifdef __cplusplus
  84. extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
  85. #elif __STDC__
  86. extern bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
  87. #else /* Old Style C */
  88. bool_t xdr_cryptkeyarg();
  89. #endif /* Old Style C */
  90. struct cryptkeyarg2 {
  91. netnamestr remotename;
  92. netobj remotekey;
  93. des_block deskey;
  94. };
  95. typedef struct cryptkeyarg2 cryptkeyarg2;
  96. #ifdef __cplusplus
  97. extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
  98. #elif __STDC__
  99. extern bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
  100. #else /* Old Style C */
  101. bool_t xdr_cryptkeyarg2();
  102. #endif /* Old Style C */
  103. struct cryptkeyres {
  104. keystatus status;
  105. union {
  106. des_block deskey;
  107. } cryptkeyres_u;
  108. };
  109. typedef struct cryptkeyres cryptkeyres;
  110. #ifdef __cplusplus
  111. extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
  112. #elif __STDC__
  113. extern bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
  114. #else /* Old Style C */
  115. bool_t xdr_cryptkeyres();
  116. #endif /* Old Style C */
  117. #define MAXGIDS 16
  118. struct unixcred {
  119. u_int uid;
  120. u_int gid;
  121. struct {
  122. u_int gids_len;
  123. u_int *gids_val;
  124. } gids;
  125. };
  126. typedef struct unixcred unixcred;
  127. #ifdef __cplusplus
  128. extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
  129. #elif __STDC__
  130. extern bool_t xdr_unixcred(XDR *, unixcred*);
  131. #else /* Old Style C */
  132. bool_t xdr_unixcred();
  133. #endif /* Old Style C */
  134. struct getcredres {
  135. keystatus status;
  136. union {
  137. unixcred cred;
  138. } getcredres_u;
  139. };
  140. typedef struct getcredres getcredres;
  141. #ifdef __cplusplus
  142. extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
  143. #elif __STDC__
  144. extern bool_t xdr_getcredres(XDR *, getcredres*);
  145. #else /* Old Style C */
  146. bool_t xdr_getcredres();
  147. #endif /* Old Style C */
  148. struct key_netstarg {
  149. keybuf st_priv_key;
  150. keybuf st_pub_key;
  151. netnamestr st_netname;
  152. };
  153. typedef struct key_netstarg key_netstarg;
  154. #ifdef __cplusplus
  155. extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
  156. #elif __STDC__
  157. extern bool_t xdr_key_netstarg(XDR *, key_netstarg*);
  158. #else /* Old Style C */
  159. bool_t xdr_key_netstarg();
  160. #endif /* Old Style C */
  161. struct key_netstres {
  162. keystatus status;
  163. union {
  164. key_netstarg knet;
  165. } key_netstres_u;
  166. };
  167. typedef struct key_netstres key_netstres;
  168. #ifdef __cplusplus
  169. extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
  170. #elif __STDC__
  171. extern bool_t xdr_key_netstres(XDR *, key_netstres*);
  172. #else /* Old Style C */
  173. bool_t xdr_key_netstres();
  174. #endif /* Old Style C */
  175. #ifndef opaque
  176. #define opaque char
  177. #endif
  178. #define KEY_PROG ((u_long)100029)
  179. #define KEY_VERS ((u_long)1)
  180. #ifdef __cplusplus
  181. #define KEY_SET ((u_long)1)
  182. extern "C" keystatus * key_set_1(opaque *, CLIENT *);
  183. extern "C" keystatus * key_set_1_svc(opaque *, struct svc_req *);
  184. #define KEY_ENCRYPT ((u_long)2)
  185. extern "C" cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
  186. extern "C" cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
  187. #define KEY_DECRYPT ((u_long)3)
  188. extern "C" cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
  189. extern "C" cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
  190. #define KEY_GEN ((u_long)4)
  191. extern "C" des_block * key_gen_1(void *, CLIENT *);
  192. extern "C" des_block * key_gen_1_svc(void *, struct svc_req *);
  193. #define KEY_GETCRED ((u_long)5)
  194. extern "C" getcredres * key_getcred_1(netnamestr *, CLIENT *);
  195. extern "C" getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
  196. #elif __STDC__
  197. #define KEY_SET ((u_long)1)
  198. extern keystatus * key_set_1(opaque *, CLIENT *);
  199. extern keystatus * key_set_1_svc(opaque *, struct svc_req *);
  200. #define KEY_ENCRYPT ((u_long)2)
  201. extern cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
  202. extern cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
  203. #define KEY_DECRYPT ((u_long)3)
  204. extern cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
  205. extern cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
  206. #define KEY_GEN ((u_long)4)
  207. extern des_block * key_gen_1(void *, CLIENT *);
  208. extern des_block * key_gen_1_svc(void *, struct svc_req *);
  209. #define KEY_GETCRED ((u_long)5)
  210. extern getcredres * key_getcred_1(netnamestr *, CLIENT *);
  211. extern getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
  212. #else /* Old Style C */
  213. #define KEY_SET ((u_long)1)
  214. extern keystatus * key_set_1();
  215. extern keystatus * key_set_1_svc();
  216. #define KEY_ENCRYPT ((u_long)2)
  217. extern cryptkeyres * key_encrypt_1();
  218. extern cryptkeyres * key_encrypt_1_svc();
  219. #define KEY_DECRYPT ((u_long)3)
  220. extern cryptkeyres * key_decrypt_1();
  221. extern cryptkeyres * key_decrypt_1_svc();
  222. #define KEY_GEN ((u_long)4)
  223. extern des_block * key_gen_1();
  224. extern des_block * key_gen_1_svc();
  225. #define KEY_GETCRED ((u_long)5)
  226. extern getcredres * key_getcred_1();
  227. extern getcredres * key_getcred_1_svc();
  228. #endif /* Old Style C */
  229. #define KEY_VERS2 ((u_long)2)
  230. #ifdef __cplusplus
  231. extern "C" keystatus * key_set_2(opaque *, CLIENT *);
  232. extern "C" keystatus * key_set_2_svc(opaque *, struct svc_req *);
  233. extern "C" cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
  234. extern "C" cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
  235. extern "C" cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
  236. extern "C" cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
  237. extern "C" des_block * key_gen_2(void *, CLIENT *);
  238. extern "C" des_block * key_gen_2_svc(void *, struct svc_req *);
  239. extern "C" getcredres * key_getcred_2(netnamestr *, CLIENT *);
  240. extern "C" getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
  241. #define KEY_ENCRYPT_PK ((u_long)6)
  242. extern "C" cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  243. extern "C" cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  244. #define KEY_DECRYPT_PK ((u_long)7)
  245. extern "C" cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  246. extern "C" cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  247. #define KEY_NET_PUT ((u_long)8)
  248. extern "C" keystatus * key_net_put_2(key_netstarg *, CLIENT *);
  249. extern "C" keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
  250. #define KEY_NET_GET ((u_long)9)
  251. extern "C" key_netstres * key_net_get_2(void *, CLIENT *);
  252. extern "C" key_netstres * key_net_get_2_svc(void *, struct svc_req *);
  253. #define KEY_GET_CONV ((u_long)10)
  254. extern "C" cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
  255. extern "C" cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
  256. #elif __STDC__
  257. extern keystatus * key_set_2(opaque *, CLIENT *);
  258. extern keystatus * key_set_2_svc(opaque *, struct svc_req *);
  259. extern cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
  260. extern cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
  261. extern cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
  262. extern cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
  263. extern des_block * key_gen_2(void *, CLIENT *);
  264. extern des_block * key_gen_2_svc(void *, struct svc_req *);
  265. extern getcredres * key_getcred_2(netnamestr *, CLIENT *);
  266. extern getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
  267. #define KEY_ENCRYPT_PK ((u_long)6)
  268. extern cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  269. extern cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  270. #define KEY_DECRYPT_PK ((u_long)7)
  271. extern cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
  272. extern cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
  273. #define KEY_NET_PUT ((u_long)8)
  274. extern keystatus * key_net_put_2(key_netstarg *, CLIENT *);
  275. extern keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
  276. #define KEY_NET_GET ((u_long)9)
  277. extern key_netstres * key_net_get_2(void *, CLIENT *);
  278. extern key_netstres * key_net_get_2_svc(void *, struct svc_req *);
  279. #define KEY_GET_CONV ((u_long)10)
  280. extern cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
  281. extern cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
  282. #else /* Old Style C */
  283. extern keystatus * key_set_2();
  284. extern keystatus * key_set_2_svc();
  285. extern cryptkeyres * key_encrypt_2();
  286. extern cryptkeyres * key_encrypt_2_svc();
  287. extern cryptkeyres * key_decrypt_2();
  288. extern cryptkeyres * key_decrypt_2_svc();
  289. extern des_block * key_gen_2();
  290. extern des_block * key_gen_2_svc();
  291. extern getcredres * key_getcred_2();
  292. extern getcredres * key_getcred_2_svc();
  293. #define KEY_ENCRYPT_PK ((u_long)6)
  294. extern cryptkeyres * key_encrypt_pk_2();
  295. extern cryptkeyres * key_encrypt_pk_2_svc();
  296. #define KEY_DECRYPT_PK ((u_long)7)
  297. extern cryptkeyres * key_decrypt_pk_2();
  298. extern cryptkeyres * key_decrypt_pk_2_svc();
  299. #define KEY_NET_PUT ((u_long)8)
  300. extern keystatus * key_net_put_2();
  301. extern keystatus * key_net_put_2_svc();
  302. #define KEY_NET_GET ((u_long)9)
  303. extern key_netstres * key_net_get_2();
  304. extern key_netstres * key_net_get_2_svc();
  305. #define KEY_GET_CONV ((u_long)10)
  306. extern cryptkeyres * key_get_conv_2();
  307. extern cryptkeyres * key_get_conv_2_svc();
  308. #endif /* Old Style C */
  309. #endif /* !_KEY_PROT_H_RPCGEN */