2 * Please do not edit this file.
3 * It was generated using rpcgen.
7 #include <rpc/key_prot.h>
8 #include "un-namespace.h"
10 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
11 * unrestricted use provided that this legend is included on all tape
12 * media and as a part of the software program in whole or part. Users
13 * may copy or modify Sun RPC without charge, but are not authorized
14 * to license or distribute it to anyone else except as part of a product or
15 * program developed by the user.
17 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
18 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
21 * Sun RPC is provided with no support and without any obligation on the
22 * part of Sun Microsystems, Inc. to assist in its use, correction,
23 * modification or enhancement.
25 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
26 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
27 * OR ANY PART THEREOF.
29 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
30 * or profits or other special, indirect and consequential damages, even if
31 * Sun has been advised of the possibility of such damages.
33 * Sun Microsystems, Inc.
35 * Mountain View, California 94043
37 /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
39 /* #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI" */
40 #include <sys/cdefs.h>
41 __FBSDID("$FreeBSD$");
44 * Compiled from key_prot.x using rpcgen.
45 * DO NOT EDIT THIS FILE!
46 * This is NOT source code!
50 xdr_keystatus(register XDR *xdrs, keystatus *objp)
53 if (!xdr_enum(xdrs, (enum_t *)objp))
59 xdr_keybuf(register XDR *xdrs, keybuf objp)
62 if (!xdr_opaque(xdrs, objp, HEXKEYBYTES))
68 xdr_netnamestr(register XDR *xdrs, netnamestr *objp)
71 if (!xdr_string(xdrs, objp, MAXNETNAMELEN))
77 xdr_cryptkeyarg(register XDR *xdrs, cryptkeyarg *objp)
80 if (!xdr_netnamestr(xdrs, &objp->remotename))
82 if (!xdr_des_block(xdrs, &objp->deskey))
88 xdr_cryptkeyarg2(register XDR *xdrs, cryptkeyarg2 *objp)
91 if (!xdr_netnamestr(xdrs, &objp->remotename))
93 if (!xdr_netobj(xdrs, &objp->remotekey))
95 if (!xdr_des_block(xdrs, &objp->deskey))
101 xdr_cryptkeyres(register XDR *xdrs, cryptkeyres *objp)
104 if (!xdr_keystatus(xdrs, &objp->status))
106 switch (objp->status) {
108 if (!xdr_des_block(xdrs, &objp->cryptkeyres_u.deskey))
118 xdr_unixcred(register XDR *xdrs, unixcred *objp)
121 if (!xdr_u_int(xdrs, &objp->uid))
123 if (!xdr_u_int(xdrs, &objp->gid))
125 if (!xdr_array(xdrs, (char **)&objp->gids.gids_val, (u_int *) &objp->gids.gids_len, MAXGIDS,
126 sizeof (u_int), (xdrproc_t) xdr_u_int))
132 xdr_getcredres(register XDR *xdrs, getcredres *objp)
135 if (!xdr_keystatus(xdrs, &objp->status))
137 switch (objp->status) {
139 if (!xdr_unixcred(xdrs, &objp->getcredres_u.cred))
149 xdr_key_netstarg(register XDR *xdrs, key_netstarg *objp)
152 if (!xdr_keybuf(xdrs, objp->st_priv_key))
154 if (!xdr_keybuf(xdrs, objp->st_pub_key))
156 if (!xdr_netnamestr(xdrs, &objp->st_netname))
162 xdr_key_netstres(register XDR *xdrs, key_netstres *objp)
165 if (!xdr_keystatus(xdrs, &objp->status))
167 switch (objp->status) {
169 if (!xdr_key_netstarg(xdrs, &objp->key_netstres_u.knet))