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
12 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
13 * unrestricted use provided that this legend is included on all tape
14 * media and as a part of the software program in whole or part. Users
15 * may copy or modify Sun RPC without charge, but are not authorized
16 * to license or distribute it to anyone else except as part of a product or
17 * program developed by the user.
19 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
20 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
21 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
23 * Sun RPC is provided with no support and without any obligation on the
24 * part of Sun Microsystems, Inc. to assist in its use, correction,
25 * modification or enhancement.
27 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
28 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
29 * OR ANY PART THEREOF.
31 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
32 * or profits or other special, indirect and consequential damages, even if
33 * Sun has been advised of the possibility of such damages.
35 * Sun Microsystems, Inc.
37 * Mountain View, California 94043
40 #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI"
42 /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
45 * Compiled from key_prot.x using rpcgen.
46 * DO NOT EDIT THIS FILE!
47 * This is NOT source code!
50 #define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
51 #define HEXKEYBYTES 48
54 #define KEYCHECKSUMSIZE 16
62 typedef enum keystatus keystatus
;
64 extern "C" bool_t
xdr_keystatus(XDR
*, keystatus
*);
66 extern bool_t
xdr_keystatus(XDR
*, keystatus
*);
67 #else /* Old Style C */
68 bool_t
xdr_keystatus();
69 #endif /* Old Style C */
72 typedef char keybuf
[HEXKEYBYTES
];
74 extern "C" bool_t
xdr_keybuf(XDR
*, keybuf
);
76 extern bool_t
xdr_keybuf(XDR
*, keybuf
);
77 #else /* Old Style C */
79 #endif /* Old Style C */
82 typedef char *netnamestr
;
84 extern "C" bool_t
xdr_netnamestr(XDR
*, netnamestr
*);
86 extern bool_t
xdr_netnamestr(XDR
*, netnamestr
*);
87 #else /* Old Style C */
88 bool_t
xdr_netnamestr();
89 #endif /* Old Style C */
93 netnamestr remotename
;
96 typedef struct cryptkeyarg cryptkeyarg
;
98 extern "C" bool_t
xdr_cryptkeyarg(XDR
*, cryptkeyarg
*);
100 extern bool_t
xdr_cryptkeyarg(XDR
*, cryptkeyarg
*);
101 #else /* Old Style C */
102 bool_t
xdr_cryptkeyarg();
103 #endif /* Old Style C */
106 struct cryptkeyarg2
{
107 netnamestr remotename
;
111 typedef struct cryptkeyarg2 cryptkeyarg2
;
113 extern "C" bool_t
xdr_cryptkeyarg2(XDR
*, cryptkeyarg2
*);
115 extern bool_t
xdr_cryptkeyarg2(XDR
*, cryptkeyarg2
*);
116 #else /* Old Style C */
117 bool_t
xdr_cryptkeyarg2();
118 #endif /* Old Style C */
127 typedef struct cryptkeyres cryptkeyres
;
129 extern "C" bool_t
xdr_cryptkeyres(XDR
*, cryptkeyres
*);
131 extern bool_t
xdr_cryptkeyres(XDR
*, cryptkeyres
*);
132 #else /* Old Style C */
133 bool_t
xdr_cryptkeyres();
134 #endif /* Old Style C */
146 typedef struct unixcred unixcred
;
148 extern "C" bool_t
xdr_unixcred(XDR
*, unixcred
*);
150 extern bool_t
xdr_unixcred(XDR
*, unixcred
*);
151 #else /* Old Style C */
152 bool_t
xdr_unixcred();
153 #endif /* Old Style C */
162 typedef struct getcredres getcredres
;
164 extern "C" bool_t
xdr_getcredres(XDR
*, getcredres
*);
166 extern bool_t
xdr_getcredres(XDR
*, getcredres
*);
167 #else /* Old Style C */
168 bool_t
xdr_getcredres();
169 #endif /* Old Style C */
172 struct key_netstarg
{
175 netnamestr st_netname
;
177 typedef struct key_netstarg key_netstarg
;
179 extern "C" bool_t
xdr_key_netstarg(XDR
*, key_netstarg
*);
181 extern bool_t
xdr_key_netstarg(XDR
*, key_netstarg
*);
182 #else /* Old Style C */
183 bool_t
xdr_key_netstarg();
184 #endif /* Old Style C */
187 struct key_netstres
{
193 typedef struct key_netstres key_netstres
;
195 extern "C" bool_t
xdr_key_netstres(XDR
*, key_netstres
*);
197 extern bool_t
xdr_key_netstres(XDR
*, key_netstres
*);
198 #else /* Old Style C */
199 bool_t
xdr_key_netstres();
200 #endif /* Old Style C */
208 #define KEY_PROG ((u_long)100029)
209 #define KEY_VERS ((u_long)1)
212 #define KEY_SET ((u_long)1)
213 extern "C" keystatus
* key_set_1(opaque
*, CLIENT
*);
214 extern "C" keystatus
* key_set_1_svc(opaque
*, struct svc_req
*);
215 #define KEY_ENCRYPT ((u_long)2)
216 extern "C" cryptkeyres
* key_encrypt_1(cryptkeyarg
*, CLIENT
*);
217 extern "C" cryptkeyres
* key_encrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
218 #define KEY_DECRYPT ((u_long)3)
219 extern "C" cryptkeyres
* key_decrypt_1(cryptkeyarg
*, CLIENT
*);
220 extern "C" cryptkeyres
* key_decrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
221 #define KEY_GEN ((u_long)4)
222 extern "C" des_block
* key_gen_1(void *, CLIENT
*);
223 extern "C" des_block
* key_gen_1_svc(void *, struct svc_req
*);
224 #define KEY_GETCRED ((u_long)5)
225 extern "C" getcredres
* key_getcred_1(netnamestr
*, CLIENT
*);
226 extern "C" getcredres
* key_getcred_1_svc(netnamestr
*, struct svc_req
*);
229 #define KEY_SET ((u_long)1)
230 extern keystatus
* key_set_1(opaque
*, CLIENT
*);
231 extern keystatus
* key_set_1_svc(opaque
*, struct svc_req
*);
232 #define KEY_ENCRYPT ((u_long)2)
233 extern cryptkeyres
* key_encrypt_1(cryptkeyarg
*, CLIENT
*);
234 extern cryptkeyres
* key_encrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
235 #define KEY_DECRYPT ((u_long)3)
236 extern cryptkeyres
* key_decrypt_1(cryptkeyarg
*, CLIENT
*);
237 extern cryptkeyres
* key_decrypt_1_svc(cryptkeyarg
*, struct svc_req
*);
238 #define KEY_GEN ((u_long)4)
239 extern des_block
* key_gen_1(void *, CLIENT
*);
240 extern des_block
* key_gen_1_svc(void *, struct svc_req
*);
241 #define KEY_GETCRED ((u_long)5)
242 extern getcredres
* key_getcred_1(netnamestr
*, CLIENT
*);
243 extern getcredres
* key_getcred_1_svc(netnamestr
*, struct svc_req
*);
245 #else /* Old Style C */
246 #define KEY_SET ((u_long)1)
247 extern keystatus
* key_set_1();
248 extern keystatus
* key_set_1_svc();
249 #define KEY_ENCRYPT ((u_long)2)
250 extern cryptkeyres
* key_encrypt_1();
251 extern cryptkeyres
* key_encrypt_1_svc();
252 #define KEY_DECRYPT ((u_long)3)
253 extern cryptkeyres
* key_decrypt_1();
254 extern cryptkeyres
* key_decrypt_1_svc();
255 #define KEY_GEN ((u_long)4)
256 extern des_block
* key_gen_1();
257 extern des_block
* key_gen_1_svc();
258 #define KEY_GETCRED ((u_long)5)
259 extern getcredres
* key_getcred_1();
260 extern getcredres
* key_getcred_1_svc();
261 #endif /* Old Style C */
262 #define KEY_VERS2 ((u_long)2)
265 extern "C" keystatus
* key_set_2(opaque
*, CLIENT
*);
266 extern "C" keystatus
* key_set_2_svc(opaque
*, struct svc_req
*);
267 extern "C" cryptkeyres
* key_encrypt_2(cryptkeyarg
*, CLIENT
*);
268 extern "C" cryptkeyres
* key_encrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
269 extern "C" cryptkeyres
* key_decrypt_2(cryptkeyarg
*, CLIENT
*);
270 extern "C" cryptkeyres
* key_decrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
271 extern "C" des_block
* key_gen_2(void *, CLIENT
*);
272 extern "C" des_block
* key_gen_2_svc(void *, struct svc_req
*);
273 extern "C" getcredres
* key_getcred_2(netnamestr
*, CLIENT
*);
274 extern "C" getcredres
* key_getcred_2_svc(netnamestr
*, struct svc_req
*);
275 #define KEY_ENCRYPT_PK ((u_long)6)
276 extern "C" cryptkeyres
* key_encrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
277 extern "C" cryptkeyres
* key_encrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
278 #define KEY_DECRYPT_PK ((u_long)7)
279 extern "C" cryptkeyres
* key_decrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
280 extern "C" cryptkeyres
* key_decrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
281 #define KEY_NET_PUT ((u_long)8)
282 extern "C" keystatus
* key_net_put_2(key_netstarg
*, CLIENT
*);
283 extern "C" keystatus
* key_net_put_2_svc(key_netstarg
*, struct svc_req
*);
284 #define KEY_NET_GET ((u_long)9)
285 extern "C" key_netstres
* key_net_get_2(void *, CLIENT
*);
286 extern "C" key_netstres
* key_net_get_2_svc(void *, struct svc_req
*);
287 #define KEY_GET_CONV ((u_long)10)
288 extern "C" cryptkeyres
* key_get_conv_2(opaque
*, CLIENT
*);
289 extern "C" cryptkeyres
* key_get_conv_2_svc(opaque
*, struct svc_req
*);
292 extern keystatus
* key_set_2(opaque
*, CLIENT
*);
293 extern keystatus
* key_set_2_svc(opaque
*, struct svc_req
*);
294 extern cryptkeyres
* key_encrypt_2(cryptkeyarg
*, CLIENT
*);
295 extern cryptkeyres
* key_encrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
296 extern cryptkeyres
* key_decrypt_2(cryptkeyarg
*, CLIENT
*);
297 extern cryptkeyres
* key_decrypt_2_svc(cryptkeyarg
*, struct svc_req
*);
298 extern des_block
* key_gen_2(void *, CLIENT
*);
299 extern des_block
* key_gen_2_svc(void *, struct svc_req
*);
300 extern getcredres
* key_getcred_2(netnamestr
*, CLIENT
*);
301 extern getcredres
* key_getcred_2_svc(netnamestr
*, struct svc_req
*);
302 #define KEY_ENCRYPT_PK ((u_long)6)
303 extern cryptkeyres
* key_encrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
304 extern cryptkeyres
* key_encrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
305 #define KEY_DECRYPT_PK ((u_long)7)
306 extern cryptkeyres
* key_decrypt_pk_2(cryptkeyarg2
*, CLIENT
*);
307 extern cryptkeyres
* key_decrypt_pk_2_svc(cryptkeyarg2
*, struct svc_req
*);
308 #define KEY_NET_PUT ((u_long)8)
309 extern keystatus
* key_net_put_2(key_netstarg
*, CLIENT
*);
310 extern keystatus
* key_net_put_2_svc(key_netstarg
*, struct svc_req
*);
311 #define KEY_NET_GET ((u_long)9)
312 extern key_netstres
* key_net_get_2(void *, CLIENT
*);
313 extern key_netstres
* key_net_get_2_svc(void *, struct svc_req
*);
314 #define KEY_GET_CONV ((u_long)10)
315 extern cryptkeyres
* key_get_conv_2(opaque
*, CLIENT
*);
316 extern cryptkeyres
* key_get_conv_2_svc(opaque
*, struct svc_req
*);
318 #else /* Old Style C */
319 extern keystatus
* key_set_2();
320 extern keystatus
* key_set_2_svc();
321 extern cryptkeyres
* key_encrypt_2();
322 extern cryptkeyres
* key_encrypt_2_svc();
323 extern cryptkeyres
* key_decrypt_2();
324 extern cryptkeyres
* key_decrypt_2_svc();
325 extern des_block
* key_gen_2();
326 extern des_block
* key_gen_2_svc();
327 extern getcredres
* key_getcred_2();
328 extern getcredres
* key_getcred_2_svc();
329 #define KEY_ENCRYPT_PK ((u_long)6)
330 extern cryptkeyres
* key_encrypt_pk_2();
331 extern cryptkeyres
* key_encrypt_pk_2_svc();
332 #define KEY_DECRYPT_PK ((u_long)7)
333 extern cryptkeyres
* key_decrypt_pk_2();
334 extern cryptkeyres
* key_decrypt_pk_2_svc();
335 #define KEY_NET_PUT ((u_long)8)
336 extern keystatus
* key_net_put_2();
337 extern keystatus
* key_net_put_2_svc();
338 #define KEY_NET_GET ((u_long)9)
339 extern key_netstres
* key_net_get_2();
340 extern key_netstres
* key_net_get_2_svc();
341 #define KEY_GET_CONV ((u_long)10)
342 extern cryptkeyres
* key_get_conv_2();
343 extern cryptkeyres
* key_get_conv_2_svc();
344 #endif /* Old Style C */
346 #endif /* !_KEY_PROT_H_RPCGEN */