2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include <rpc/key_prot.h>
8 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
9 * unrestricted use provided that this legend is included on all tape
10 * media and as a part of the software program in whole or part. Users
11 * may copy or modify Sun RPC without charge, but are not authorized
12 * to license or distribute it to anyone else except as part of a product or
13 * program developed by the user.
15 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
16 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
19 * Sun RPC is provided with no support and without any obligation on the
20 * part of Sun Microsystems, Inc. to assist in its use, correction,
21 * modification or enhancement.
23 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
24 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
25 * OR ANY PART THEREOF.
27 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
28 * or profits or other special, indirect and consequential damages, even if
29 * Sun has been advised of the possibility of such damages.
31 * Sun Microsystems, Inc.
33 * Mountain View, California 94043
35 #pragma ident "@(#)key_prot.x 1.7 94/04/29 SMI"
37 /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
40 * Compiled from key_prot.x using rpcgen.
41 * DO NOT EDIT THIS FILE!
42 * This is NOT source code!
46 xdr_keystatus(register XDR *xdrs, keystatus *objp)
49 if (!xdr_enum(xdrs, (enum_t *)objp))
55 xdr_keybuf(register XDR *xdrs, keybuf objp)
58 if (!xdr_opaque(xdrs, objp, HEXKEYBYTES))
64 xdr_netnamestr(register XDR *xdrs, netnamestr *objp)
67 if (!xdr_string(xdrs, objp, MAXNETNAMELEN))
73 xdr_cryptkeyarg(register XDR *xdrs, cryptkeyarg *objp)
76 if (!xdr_netnamestr(xdrs, &objp->remotename))
78 if (!xdr_des_block(xdrs, &objp->deskey))
84 xdr_cryptkeyarg2(register XDR *xdrs, cryptkeyarg2 *objp)
87 if (!xdr_netnamestr(xdrs, &objp->remotename))
89 if (!xdr_netobj(xdrs, &objp->remotekey))
91 if (!xdr_des_block(xdrs, &objp->deskey))
97 xdr_cryptkeyres(register XDR *xdrs, cryptkeyres *objp)
100 if (!xdr_keystatus(xdrs, &objp->status))
102 switch (objp->status) {
104 if (!xdr_des_block(xdrs, &objp->cryptkeyres_u.deskey))
112 xdr_unixcred(register XDR *xdrs, unixcred *objp)
115 if (!xdr_u_int(xdrs, &objp->uid))
117 if (!xdr_u_int(xdrs, &objp->gid))
119 if (!xdr_array(xdrs, (char **)&objp->gids.gids_val, (u_int *) &objp->gids.gids_len, MAXGIDS,
120 sizeof (u_int), (xdrproc_t) xdr_u_int))
126 xdr_getcredres(register XDR *xdrs, getcredres *objp)
129 if (!xdr_keystatus(xdrs, &objp->status))
131 switch (objp->status) {
133 if (!xdr_unixcred(xdrs, &objp->getcredres_u.cred))
141 xdr_key_netstarg(register XDR *xdrs, key_netstarg *objp)
144 if (!xdr_keybuf(xdrs, objp->st_priv_key))
146 if (!xdr_keybuf(xdrs, objp->st_pub_key))
148 if (!xdr_netnamestr(xdrs, &objp->st_netname))
154 xdr_key_netstres(register XDR *xdrs, key_netstres *objp)
157 if (!xdr_keystatus(xdrs, &objp->status))
159 switch (objp->status) {
161 if (!xdr_key_netstarg(xdrs, &objp->key_netstres_u.knet))