blob: 629e24991b124a1615c50754116f4e049a47c4f9 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _KEY_PROT_H_RPCGEN
7#define _KEY_PROT_H_RPCGEN
8
9#include <rpc/rpc.h>
10
11/*
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.
18 *
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.
22 *
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.
26 *
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.
30 *
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.
34 *
35 * Sun Microsystems, Inc.
36 * 2550 Garcia Avenue
37 * Mountain View, California 94043
38 */
39#if 0
40#pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI"
41#endif
42/* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
43
44/*
45 * Compiled from key_prot.x using rpcgen.
46 * DO NOT EDIT THIS FILE!
47 * This is NOT source code!
48 */
49#define PROOT 3
50#define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b"
51#define HEXKEYBYTES 48
52#define KEYSIZE 192
53#define KEYBYTES 24
54#define KEYCHECKSUMSIZE 16
55
56enum keystatus {
57 KEY_SUCCESS = 0,
58 KEY_NOSECRET = 1,
59 KEY_UNKNOWN = 2,
60 KEY_SYSTEMERR = 3,
61};
62typedef enum keystatus keystatus;
63#ifdef __cplusplus
64extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
65#elif __STDC__
66extern bool_t xdr_keystatus(XDR *, keystatus*);
67#else /* Old Style C */
68bool_t xdr_keystatus();
69#endif /* Old Style C */
70
71
72typedef char keybuf[HEXKEYBYTES];
73#ifdef __cplusplus
74extern "C" bool_t xdr_keybuf(XDR *, keybuf);
75#elif __STDC__
76extern bool_t xdr_keybuf(XDR *, keybuf);
77#else /* Old Style C */
78bool_t xdr_keybuf();
79#endif /* Old Style C */
80
81
82typedef char *netnamestr;
83#ifdef __cplusplus
84extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
85#elif __STDC__
86extern bool_t xdr_netnamestr(XDR *, netnamestr*);
87#else /* Old Style C */
88bool_t xdr_netnamestr();
89#endif /* Old Style C */
90
91
92struct cryptkeyarg {
93 netnamestr remotename;
94 des_block deskey;
95};
96typedef struct cryptkeyarg cryptkeyarg;
97#ifdef __cplusplus
98extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
99#elif __STDC__
100extern bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
101#else /* Old Style C */
102bool_t xdr_cryptkeyarg();
103#endif /* Old Style C */
104
105
106struct cryptkeyarg2 {
107 netnamestr remotename;
108 netobj remotekey;
109 des_block deskey;
110};
111typedef struct cryptkeyarg2 cryptkeyarg2;
112#ifdef __cplusplus
113extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
114#elif __STDC__
115extern bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
116#else /* Old Style C */
117bool_t xdr_cryptkeyarg2();
118#endif /* Old Style C */
119
120
121struct cryptkeyres {
122 keystatus status;
123 union {
124 des_block deskey;
125 } cryptkeyres_u;
126};
127typedef struct cryptkeyres cryptkeyres;
128#ifdef __cplusplus
129extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
130#elif __STDC__
131extern bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
132#else /* Old Style C */
133bool_t xdr_cryptkeyres();
134#endif /* Old Style C */
135
136#define MAXGIDS 16
137
138struct unixcred {
139 u_int uid;
140 u_int gid;
141 struct {
142 u_int gids_len;
143 u_int *gids_val;
144 } gids;
145};
146typedef struct unixcred unixcred;
147#ifdef __cplusplus
148extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
149#elif __STDC__
150extern bool_t xdr_unixcred(XDR *, unixcred*);
151#else /* Old Style C */
152bool_t xdr_unixcred();
153#endif /* Old Style C */
154
155
156struct getcredres {
157 keystatus status;
158 union {
159 unixcred cred;
160 } getcredres_u;
161};
162typedef struct getcredres getcredres;
163#ifdef __cplusplus
164extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
165#elif __STDC__
166extern bool_t xdr_getcredres(XDR *, getcredres*);
167#else /* Old Style C */
168bool_t xdr_getcredres();
169#endif /* Old Style C */
170
171
172struct key_netstarg {
173 keybuf st_priv_key;
174 keybuf st_pub_key;
175 netnamestr st_netname;
176};
177typedef struct key_netstarg key_netstarg;
178#ifdef __cplusplus
179extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
180#elif __STDC__
181extern bool_t xdr_key_netstarg(XDR *, key_netstarg*);
182#else /* Old Style C */
183bool_t xdr_key_netstarg();
184#endif /* Old Style C */
185
186
187struct key_netstres {
188 keystatus status;
189 union {
190 key_netstarg knet;
191 } key_netstres_u;
192};
193typedef struct key_netstres key_netstres;
194#ifdef __cplusplus
195extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
196#elif __STDC__
197extern bool_t xdr_key_netstres(XDR *, key_netstres*);
198#else /* Old Style C */
199bool_t xdr_key_netstres();
200#endif /* Old Style C */
201
202
203#ifndef opaque
204#define opaque char
205#endif
206
207
208#define KEY_PROG ((u_long)100029)
209#define KEY_VERS ((u_long)1)
210
211#ifdef __cplusplus
212#define KEY_SET ((u_long)1)
213extern "C" keystatus * key_set_1(opaque *, CLIENT *);
214extern "C" keystatus * key_set_1_svc(opaque *, struct svc_req *);
215#define KEY_ENCRYPT ((u_long)2)
216extern "C" cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
217extern "C" cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
218#define KEY_DECRYPT ((u_long)3)
219extern "C" cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
220extern "C" cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
221#define KEY_GEN ((u_long)4)
222extern "C" des_block * key_gen_1(void *, CLIENT *);
223extern "C" des_block * key_gen_1_svc(void *, struct svc_req *);
224#define KEY_GETCRED ((u_long)5)
225extern "C" getcredres * key_getcred_1(netnamestr *, CLIENT *);
226extern "C" getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
227
228#elif __STDC__
229#define KEY_SET ((u_long)1)
230extern keystatus * key_set_1(opaque *, CLIENT *);
231extern keystatus * key_set_1_svc(opaque *, struct svc_req *);
232#define KEY_ENCRYPT ((u_long)2)
233extern cryptkeyres * key_encrypt_1(cryptkeyarg *, CLIENT *);
234extern cryptkeyres * key_encrypt_1_svc(cryptkeyarg *, struct svc_req *);
235#define KEY_DECRYPT ((u_long)3)
236extern cryptkeyres * key_decrypt_1(cryptkeyarg *, CLIENT *);
237extern cryptkeyres * key_decrypt_1_svc(cryptkeyarg *, struct svc_req *);
238#define KEY_GEN ((u_long)4)
239extern des_block * key_gen_1(void *, CLIENT *);
240extern des_block * key_gen_1_svc(void *, struct svc_req *);
241#define KEY_GETCRED ((u_long)5)
242extern getcredres * key_getcred_1(netnamestr *, CLIENT *);
243extern getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
244
245#else /* Old Style C */
246#define KEY_SET ((u_long)1)
247extern keystatus * key_set_1();
248extern keystatus * key_set_1_svc();
249#define KEY_ENCRYPT ((u_long)2)
250extern cryptkeyres * key_encrypt_1();
251extern cryptkeyres * key_encrypt_1_svc();
252#define KEY_DECRYPT ((u_long)3)
253extern cryptkeyres * key_decrypt_1();
254extern cryptkeyres * key_decrypt_1_svc();
255#define KEY_GEN ((u_long)4)
256extern des_block * key_gen_1();
257extern des_block * key_gen_1_svc();
258#define KEY_GETCRED ((u_long)5)
259extern getcredres * key_getcred_1();
260extern getcredres * key_getcred_1_svc();
261#endif /* Old Style C */
262#define KEY_VERS2 ((u_long)2)
263
264#ifdef __cplusplus
265extern "C" keystatus * key_set_2(opaque *, CLIENT *);
266extern "C" keystatus * key_set_2_svc(opaque *, struct svc_req *);
267extern "C" cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
268extern "C" cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
269extern "C" cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
270extern "C" cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
271extern "C" des_block * key_gen_2(void *, CLIENT *);
272extern "C" des_block * key_gen_2_svc(void *, struct svc_req *);
273extern "C" getcredres * key_getcred_2(netnamestr *, CLIENT *);
274extern "C" getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
275#define KEY_ENCRYPT_PK ((u_long)6)
276extern "C" cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
277extern "C" cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
278#define KEY_DECRYPT_PK ((u_long)7)
279extern "C" cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
280extern "C" cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
281#define KEY_NET_PUT ((u_long)8)
282extern "C" keystatus * key_net_put_2(key_netstarg *, CLIENT *);
283extern "C" keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
284#define KEY_NET_GET ((u_long)9)
285extern "C" key_netstres * key_net_get_2(void *, CLIENT *);
286extern "C" key_netstres * key_net_get_2_svc(void *, struct svc_req *);
287#define KEY_GET_CONV ((u_long)10)
288extern "C" cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
289extern "C" cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
290
291#elif __STDC__
292extern keystatus * key_set_2(opaque *, CLIENT *);
293extern keystatus * key_set_2_svc(opaque *, struct svc_req *);
294extern cryptkeyres * key_encrypt_2(cryptkeyarg *, CLIENT *);
295extern cryptkeyres * key_encrypt_2_svc(cryptkeyarg *, struct svc_req *);
296extern cryptkeyres * key_decrypt_2(cryptkeyarg *, CLIENT *);
297extern cryptkeyres * key_decrypt_2_svc(cryptkeyarg *, struct svc_req *);
298extern des_block * key_gen_2(void *, CLIENT *);
299extern des_block * key_gen_2_svc(void *, struct svc_req *);
300extern getcredres * key_getcred_2(netnamestr *, CLIENT *);
301extern getcredres * key_getcred_2_svc(netnamestr *, struct svc_req *);
302#define KEY_ENCRYPT_PK ((u_long)6)
303extern cryptkeyres * key_encrypt_pk_2(cryptkeyarg2 *, CLIENT *);
304extern cryptkeyres * key_encrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
305#define KEY_DECRYPT_PK ((u_long)7)
306extern cryptkeyres * key_decrypt_pk_2(cryptkeyarg2 *, CLIENT *);
307extern cryptkeyres * key_decrypt_pk_2_svc(cryptkeyarg2 *, struct svc_req *);
308#define KEY_NET_PUT ((u_long)8)
309extern keystatus * key_net_put_2(key_netstarg *, CLIENT *);
310extern keystatus * key_net_put_2_svc(key_netstarg *, struct svc_req *);
311#define KEY_NET_GET ((u_long)9)
312extern key_netstres * key_net_get_2(void *, CLIENT *);
313extern key_netstres * key_net_get_2_svc(void *, struct svc_req *);
314#define KEY_GET_CONV ((u_long)10)
315extern cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
316extern cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
317
318#else /* Old Style C */
319extern keystatus * key_set_2();
320extern keystatus * key_set_2_svc();
321extern cryptkeyres * key_encrypt_2();
322extern cryptkeyres * key_encrypt_2_svc();
323extern cryptkeyres * key_decrypt_2();
324extern cryptkeyres * key_decrypt_2_svc();
325extern des_block * key_gen_2();
326extern des_block * key_gen_2_svc();
327extern getcredres * key_getcred_2();
328extern getcredres * key_getcred_2_svc();
329#define KEY_ENCRYPT_PK ((u_long)6)
330extern cryptkeyres * key_encrypt_pk_2();
331extern cryptkeyres * key_encrypt_pk_2_svc();
332#define KEY_DECRYPT_PK ((u_long)7)
333extern cryptkeyres * key_decrypt_pk_2();
334extern cryptkeyres * key_decrypt_pk_2_svc();
335#define KEY_NET_PUT ((u_long)8)
336extern keystatus * key_net_put_2();
337extern keystatus * key_net_put_2_svc();
338#define KEY_NET_GET ((u_long)9)
339extern key_netstres * key_net_get_2();
340extern key_netstres * key_net_get_2_svc();
341#define KEY_GET_CONV ((u_long)10)
342extern cryptkeyres * key_get_conv_2();
343extern cryptkeyres * key_get_conv_2_svc();
344#endif /* Old Style C */
345
346#endif /* !_KEY_PROT_H_RPCGEN */