2 * Please do not edit this file.
3 * It was generated using rpcgen.
5 /* $DragonFly: src/lib/libc/rpc/key_prot_xdr.c,v 1.3 2006/03/13 14:36:46 swildner Exp $ */
7 #include <rpc/key_prot.h>
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.
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.
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.
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.
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.
32 * Sun Microsystems, Inc.
34 * Mountain View, California 94043
36 #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI"
38 /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
41 * Compiled from key_prot.x using rpcgen.
42 * DO NOT EDIT THIS FILE!
43 * This is NOT source code!
47 xdr_keystatus(XDR
*xdrs
, keystatus
*objp
)
50 if (!xdr_enum(xdrs
, (enum_t
*)objp
))
56 xdr_keybuf(XDR
*xdrs
, keybuf objp
)
59 if (!xdr_opaque(xdrs
, objp
, HEXKEYBYTES
))
65 xdr_netnamestr(XDR
*xdrs
, netnamestr
*objp
)
68 if (!xdr_string(xdrs
, objp
, MAXNETNAMELEN
))
74 xdr_cryptkeyarg(XDR
*xdrs
, cryptkeyarg
*objp
)
77 if (!xdr_netnamestr(xdrs
, &objp
->remotename
))
79 if (!xdr_des_block(xdrs
, &objp
->deskey
))
85 xdr_cryptkeyarg2(XDR
*xdrs
, cryptkeyarg2
*objp
)
88 if (!xdr_netnamestr(xdrs
, &objp
->remotename
))
90 if (!xdr_netobj(xdrs
, &objp
->remotekey
))
92 if (!xdr_des_block(xdrs
, &objp
->deskey
))
98 xdr_cryptkeyres(XDR
*xdrs
, cryptkeyres
*objp
)
101 if (!xdr_keystatus(xdrs
, &objp
->status
))
103 switch (objp
->status
) {
105 if (!xdr_des_block(xdrs
, &objp
->cryptkeyres_u
.deskey
))
115 xdr_unixcred(XDR
*xdrs
, unixcred
*objp
)
119 if (!xdr_u_int(xdrs
, &objp
->uid
))
121 if (!xdr_u_int(xdrs
, &objp
->gid
))
123 pgids_val
= &objp
->gids
.gids_val
;
124 if (!xdr_array(xdrs
, (char **) pgids_val
, (u_int
*) &objp
->gids
.gids_len
, MAXGIDS
,
125 sizeof (u_int
), (xdrproc_t
) xdr_u_int
))
131 xdr_getcredres(XDR
*xdrs
, getcredres
*objp
)
134 if (!xdr_keystatus(xdrs
, &objp
->status
))
136 switch (objp
->status
) {
138 if (!xdr_unixcred(xdrs
, &objp
->getcredres_u
.cred
))
148 xdr_key_netstarg(XDR
*xdrs
, key_netstarg
*objp
)
151 if (!xdr_keybuf(xdrs
, objp
->st_priv_key
))
153 if (!xdr_keybuf(xdrs
, objp
->st_pub_key
))
155 if (!xdr_netnamestr(xdrs
, &objp
->st_netname
))
161 xdr_key_netstres(XDR
*xdrs
, key_netstres
*objp
)
164 if (!xdr_keystatus(xdrs
, &objp
->status
))
166 switch (objp
->status
) {
168 if (!xdr_key_netstarg(xdrs
, &objp
->key_netstres_u
.knet
))