2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #ifndef _KEY_PROT_H_RPCGEN
7 #define _KEY_PROT_H_RPCGEN
11 /* Copyright (c) 2010, Oracle America, Inc.
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions are
17 * * Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * * Redistributions in binary form must reproduce the above
20 * copyright notice, this list of conditions and the following
21 * disclaimer in the documentation and/or other materials
22 * provided with the distribution.
23 * * Neither the name of the "Oracle America, Inc." nor the names of its
24 * contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
30 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
31 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
32 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
37 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 * Compiled from key_prot.x using rpcgen.
43 * DO NOT EDIT THIS FILE!
44 * This is NOT source code!
47 #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
48 #define HEXKEYBYTES 48
51 #define KEYCHECKSUMSIZE 16
59 typedef enum keystatus keystatus
;
61 extern "C" bool_t
xdr_keystatus(XDR
*, keystatus
*);
63 extern bool_t
xdr_keystatus(XDR
*, keystatus
*);
64 #else /* Old Style C */
65 bool_t
xdr_keystatus();
66 #endif /* Old Style C */
69 typedef char keybuf
[HEXKEYBYTES
];
71 extern "C" bool_t
xdr_keybuf(XDR
*, keybuf
);
73 extern bool_t
xdr_keybuf(XDR
*, keybuf
);
74 #else /* Old Style C */
76 #endif /* Old Style C */
79 typedef char *netnamestr
;
81 extern "C" bool_t
xdr_netnamestr(XDR
*, netnamestr
*);
83 extern bool_t
xdr_netnamestr(XDR
*, netnamestr
*);
84 #else /* Old Style C */
85 bool_t
xdr_netnamestr();
86 #endif /* Old Style C */
90 netnamestr remotename
;
93 typedef struct cryptkeyarg cryptkeyarg
;
95 extern "C" bool_t
xdr_cryptkeyarg(XDR
*, cryptkeyarg
*);
97 extern bool_t
xdr_cryptkeyarg(XDR
*, cryptkeyarg
*);
98 #else /* Old Style C */
99 bool_t
xdr_cryptkeyarg();
100 #endif /* Old Style C */
103 struct cryptkeyarg2
{
104 netnamestr remotename
;
108 typedef struct cryptkeyarg2 cryptkeyarg2
;
110 extern "C" bool_t
xdr_cryptkeyarg2(XDR
*, cryptkeyarg2
*);
112 extern bool_t
xdr_cryptkeyarg2(XDR
*, cryptkeyarg2
*);
113 #else /* Old Style C */
114 bool_t
xdr_cryptkeyarg2();
115 #endif /* Old Style C */
124 typedef struct cryptkeyres cryptkeyres
;
126 extern "C" bool_t
xdr_cryptkeyres(XDR
*, cryptkeyres
*);
128 extern bool_t
xdr_cryptkeyres(XDR
*, cryptkeyres
*);
129 #else /* Old Style C */
130 bool_t
xdr_cryptkeyres();
131 #endif /* Old Style C */
143 typedef struct unixcred unixcred
;
145 extern "C" bool_t
xdr_unixcred(XDR
*, unixcred
*);
147 extern bool_t
xdr_unixcred(XDR
*, unixcred
*);
148 #else /* Old Style C */
149 bool_t
xdr_unixcred();
150 #endif /* Old Style C */
159 typedef struct getcredres getcredres
;
161 extern "C" bool_t
xdr_getcredres(XDR
*, getcredres
*);
163 extern bool_t
xdr_getcredres(XDR
*, getcredres
*);
164 #else /* Old Style C */
165 bool_t
xdr_getcredres();
166 #endif /* Old Style C */
169 struct key_netstarg
{
172 netnamestr st_netname
;
174 typedef struct key_netstarg key_netstarg
;
176 extern "C" bool_t
xdr_key_netstarg(XDR
*, key_netstarg
*);
178 extern bool_t
xdr_key_netstarg(XDR
*, key_netstarg
*);
179 #else /* Old Style C */
180 bool_t
xdr_key_netstarg();
181 #endif /* Old Style C */
184 struct key_netstres
{
190 typedef struct key_netstres key_netstres
;
192 extern "C" bool_t
xdr_key_netstres(XDR
*, key_netstres
*);
194 extern bool_t
xdr_key_netstres(XDR
*, key_netstres
*);
195 #else /* Old Style C */
196 bool_t
xdr_key_netstres();
197 #endif /* Old Style C */
205 #define KEY_PROG ((u_long)100029)
206 #define KEY_VERS ((u_long)1)
209 #define KEY_SET ((u_long)1)
210 extern "C" keystatus
* key_set_1(opaque
*, CLIENT
*);
211 extern "C" keystatus
* key_set_1_svc(opaque
*, struct svc_req
*);
212 #define KEY_ENCRYPT ((u_long)2)
213 extern "C" cryptkeyres
* key_encrypt_1(cryptkeyarg
*, CLIENT
*);
214 extern "C" cryptkeyres
* key_encrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
215 #define KEY_DECRYPT ((u_long)3)
216 extern "C" cryptkeyres
* key_decrypt_1(cryptkeyarg
*, CLIENT
*);
217 extern "C" cryptkeyres
* key_decrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
218 #define KEY_GEN ((u_long)4)
219 extern "C" des_block
* key_gen_1(void *, CLIENT
*);
220 extern "C" des_block
* key_gen_1_svc(void *, struct svc_req
*);
221 #define KEY_GETCRED ((u_long)5)
222 extern "C" getcredres
* key_getcred_1(netnamestr
*, CLIENT
*);
223 extern "C" getcredres
* key_getcred_1_svc(netnamestr
*, struct svc_req
*);
226 #define KEY_SET ((u_long)1)
227 extern keystatus
* key_set_1(opaque
*, CLIENT
*);
228 extern keystatus
* key_set_1_svc(opaque
*, struct svc_req
*);
229 #define KEY_ENCRYPT ((u_long)2)
230 extern cryptkeyres
* key_encrypt_1(cryptkeyarg
*, CLIENT
*);
231 extern cryptkeyres
* key_encrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
232 #define KEY_DECRYPT ((u_long)3)
233 extern cryptkeyres
* key_decrypt_1(cryptkeyarg
*, CLIENT
*);
234 extern cryptkeyres
* key_decrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
235 #define KEY_GEN ((u_long)4)
236 extern des_block
* key_gen_1(void *, CLIENT
*);
237 extern des_block
* key_gen_1_svc(void *, struct svc_req
*);
238 #define KEY_GETCRED ((u_long)5)
239 extern getcredres
* key_getcred_1(netnamestr
*, CLIENT
*);
240 extern getcredres
* key_getcred_1_svc(netnamestr
*, struct svc_req
*);
242 #else /* Old Style C */
243 #define KEY_SET ((u_long)1)
244 extern keystatus
* key_set_1();
245 extern keystatus
* key_set_1_svc();
246 #define KEY_ENCRYPT ((u_long)2)
247 extern cryptkeyres
* key_encrypt_1();
248 extern cryptkeyres
* key_encrypt_1_svc();
249 #define KEY_DECRYPT ((u_long)3)
250 extern cryptkeyres
* key_decrypt_1();
251 extern cryptkeyres
* key_decrypt_1_svc();
252 #define KEY_GEN ((u_long)4)
253 extern des_block
* key_gen_1();
254 extern des_block
* key_gen_1_svc();
255 #define KEY_GETCRED ((u_long)5)
256 extern getcredres
* key_getcred_1();
257 extern getcredres
* key_getcred_1_svc();
258 #endif /* Old Style C */
259 #define KEY_VERS2 ((u_long)2)
262 extern "C" keystatus
* key_set_2(opaque
*, CLIENT
*);
263 extern "C" keystatus
* key_set_2_svc(opaque
*, struct svc_req
*);
264 extern "C" cryptkeyres
* key_encrypt_2(cryptkeyarg
*, CLIENT
*);
265 extern "C" cryptkeyres
* key_encrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
266 extern "C" cryptkeyres
* key_decrypt_2(cryptkeyarg
*, CLIENT
*);
267 extern "C" cryptkeyres
* key_decrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
268 extern "C" des_block
* key_gen_2(void *, CLIENT
*);
269 extern "C" des_block
* key_gen_2_svc(void *, struct svc_req
*);
270 extern "C" getcredres
* key_getcred_2(netnamestr
*, CLIENT
*);
271 extern "C" getcredres
* key_getcred_2_svc(netnamestr
*, struct svc_req
*);
272 #define KEY_ENCRYPT_PK ((u_long)6)
273 extern "C" cryptkeyres
* key_encrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
274 extern "C" cryptkeyres
* key_encrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
275 #define KEY_DECRYPT_PK ((u_long)7)
276 extern "C" cryptkeyres
* key_decrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
277 extern "C" cryptkeyres
* key_decrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
278 #define KEY_NET_PUT ((u_long)8)
279 extern "C" keystatus
* key_net_put_2(key_netstarg
*, CLIENT
*);
280 extern "C" keystatus
* key_net_put_2_svc(key_netstarg
*, struct svc_req
*);
281 #define KEY_NET_GET ((u_long)9)
282 extern "C" key_netstres
* key_net_get_2(void *, CLIENT
*);
283 extern "C" key_netstres
* key_net_get_2_svc(void *, struct svc_req
*);
284 #define KEY_GET_CONV ((u_long)10)
285 extern "C" cryptkeyres
* key_get_conv_2(opaque
*, CLIENT
*);
286 extern "C" cryptkeyres
* key_get_conv_2_svc(opaque
*, struct svc_req
*);
289 extern keystatus
* key_set_2(opaque
*, CLIENT
*);
290 extern keystatus
* key_set_2_svc(opaque
*, struct svc_req
*);
291 extern cryptkeyres
* key_encrypt_2(cryptkeyarg
*, CLIENT
*);
292 extern cryptkeyres
* key_encrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
293 extern cryptkeyres
* key_decrypt_2(cryptkeyarg
*, CLIENT
*);
294 extern cryptkeyres
* key_decrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
295 extern des_block
* key_gen_2(void *, CLIENT
*);
296 extern des_block
* key_gen_2_svc(void *, struct svc_req
*);
297 extern getcredres
* key_getcred_2(netnamestr
*, CLIENT
*);
298 extern getcredres
* key_getcred_2_svc(netnamestr
*, struct svc_req
*);
299 #define KEY_ENCRYPT_PK ((u_long)6)
300 extern cryptkeyres
* key_encrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
301 extern cryptkeyres
* key_encrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
302 #define KEY_DECRYPT_PK ((u_long)7)
303 extern cryptkeyres
* key_decrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
304 extern cryptkeyres
* key_decrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
305 #define KEY_NET_PUT ((u_long)8)
306 extern keystatus
* key_net_put_2(key_netstarg
*, CLIENT
*);
307 extern keystatus
* key_net_put_2_svc(key_netstarg
*, struct svc_req
*);
308 #define KEY_NET_GET ((u_long)9)
309 extern key_netstres
* key_net_get_2(void *, CLIENT
*);
310 extern key_netstres
* key_net_get_2_svc(void *, struct svc_req
*);
311 #define KEY_GET_CONV ((u_long)10)
312 extern cryptkeyres
* key_get_conv_2(opaque
*, CLIENT
*);
313 extern cryptkeyres
* key_get_conv_2_svc(opaque
*, struct svc_req
*);
315 #else /* Old Style C */
316 extern keystatus
* key_set_2();
317 extern keystatus
* key_set_2_svc();
318 extern cryptkeyres
* key_encrypt_2();
319 extern cryptkeyres
* key_encrypt_2_svc();
320 extern cryptkeyres
* key_decrypt_2();
321 extern cryptkeyres
* key_decrypt_2_svc();
322 extern des_block
* key_gen_2();
323 extern des_block
* key_gen_2_svc();
324 extern getcredres
* key_getcred_2();
325 extern getcredres
* key_getcred_2_svc();
326 #define KEY_ENCRYPT_PK ((u_long)6)
327 extern cryptkeyres
* key_encrypt_pk_2();
328 extern cryptkeyres
* key_encrypt_pk_2_svc();
329 #define KEY_DECRYPT_PK ((u_long)7)
330 extern cryptkeyres
* key_decrypt_pk_2();
331 extern cryptkeyres
* key_decrypt_pk_2_svc();
332 #define KEY_NET_PUT ((u_long)8)
333 extern keystatus
* key_net_put_2();
334 extern keystatus
* key_net_put_2_svc();
335 #define KEY_NET_GET ((u_long)9)
336 extern key_netstres
* key_net_get_2();
337 extern key_netstres
* key_net_get_2_svc();
338 #define KEY_GET_CONV ((u_long)10)
339 extern cryptkeyres
* key_get_conv_2();
340 extern cryptkeyres
* key_get_conv_2_svc();
341 #endif /* Old Style C */
343 #endif /* !_KEY_PROT_H_RPCGEN */