2 * Please do not edit this file.
3 * It was generated using rpcgen.
7 #include <rpc/key_prot.h>
9 * Copyright (c) 2009, Sun Microsystems, Inc.
10 * All rights reserved.
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions are met:
14 * - Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 * - Redistributions in binary form must reproduce the above copyright notice,
17 * this list of conditions and the following disclaimer in the documentation
18 * and/or other materials provided with the distribution.
19 * - Neither the name of Sun Microsystems, Inc. nor the names of its
20 * contributors may be used to endorse or promote products derived
21 * from this software without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
35 /* Copyright (c) 1990, 1991 Sun Microsystems, Inc. */
37 //#include <sys/cdefs.h>
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
))
114 xdr_unixcred(register XDR
*xdrs
, unixcred
*objp
)
117 if (!xdr_u_int(xdrs
, &objp
->uid
))
119 if (!xdr_u_int(xdrs
, &objp
->gid
))
121 if (!xdr_array(xdrs
, (char **)&objp
->gids
.gids_val
, (u_int
*) &objp
->gids
.gids_len
, MAXGIDS
,
122 sizeof (u_int
), (xdrproc_t
) xdr_u_int
))
128 xdr_getcredres(register XDR
*xdrs
, getcredres
*objp
)
131 if (!xdr_keystatus(xdrs
, &objp
->status
))
133 switch (objp
->status
) {
135 if (!xdr_unixcred(xdrs
, &objp
->getcredres_u
.cred
))
145 xdr_key_netstarg(register XDR
*xdrs
, key_netstarg
*objp
)
148 if (!xdr_keybuf(xdrs
, objp
->st_priv_key
))
150 if (!xdr_keybuf(xdrs
, objp
->st_pub_key
))
152 if (!xdr_netnamestr(xdrs
, &objp
->st_netname
))
158 xdr_key_netstres(register XDR
*xdrs
, key_netstres
*objp
)
161 if (!xdr_keystatus(xdrs
, &objp
->status
))
163 switch (objp
->status
) {
165 if (!xdr_key_netstarg(xdrs
, &objp
->key_netstres_u
.knet
))