4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * Please do not edit this file.
29 * It was generated using rpcgen.
32 #pragma ident "%Z%%M% %I% %E% SMI"
34 #include <rpc/key_prot.h>
35 /* @(#)key_prot.x 1.10 90/01/03 Copyright (c) 1990, 1991 SMI */
38 * Compiled from key_prot.x using rpcgen.
39 * DO NOT EDIT THIS FILE!
40 * This is NOT source code!
44 xdr_keystatus(XDR
*xdrs
, keystatus
*objp
)
46 if (!xdr_enum(xdrs
, (enum_t
*)objp
))
52 xdr_keybuf(XDR
*xdrs
, keybuf objp
)
54 if (!xdr_opaque(xdrs
, objp
, HEXKEYBYTES
))
60 xdr_netnamestr(XDR
*xdrs
, netnamestr
*objp
)
62 if (!xdr_string(xdrs
, objp
, MAXNETNAMELEN
))
69 xdr_cryptkeyarg(XDR
*xdrs
, cryptkeyarg
*objp
)
71 if (!xdr_netnamestr(xdrs
, &objp
->remotename
))
73 if (!xdr_des_block(xdrs
, &objp
->deskey
))
79 xdr_cryptkeyarg2(XDR
*xdrs
, cryptkeyarg2
*objp
)
81 if (!xdr_netnamestr(xdrs
, &objp
->remotename
))
83 if (!xdr_netobj(xdrs
, &objp
->remotekey
))
85 if (!xdr_des_block(xdrs
, &objp
->deskey
))
91 xdr_cryptkeyres(XDR
*xdrs
, cryptkeyres
*objp
)
93 if (!xdr_keystatus(xdrs
, &objp
->status
))
95 switch (objp
->status
) {
97 if (!xdr_des_block(xdrs
, &objp
->cryptkeyres_u
.deskey
))
107 xdr_unixcred(XDR
*xdrs
, unixcred
*objp
)
109 if (!xdr_u_int(xdrs
, &objp
->uid
))
111 if (!xdr_u_int(xdrs
, &objp
->gid
))
113 if (!xdr_array(xdrs
, (char **)&objp
->gids
.gids_val
,
114 (uint_t
*)&objp
->gids
.gids_len
, MAXGIDS
,
115 sizeof (uint_t
), (xdrproc_t
)xdr_u_int
))
121 xdr_getcredres(XDR
*xdrs
, getcredres
*objp
)
123 if (!xdr_keystatus(xdrs
, &objp
->status
))
125 switch (objp
->status
) {
127 if (!xdr_unixcred(xdrs
, &objp
->getcredres_u
.cred
))
137 xdr_key_netstarg(XDR
*xdrs
, key_netstarg
*objp
)
139 if (!xdr_keybuf(xdrs
, objp
->st_priv_key
))
141 if (!xdr_keybuf(xdrs
, objp
->st_pub_key
))
145 if (!xdr_netnamestr(xdrs
, &objp
->st_netname
))
152 xdr_key_netstres(XDR
*xdrs
, key_netstres
*objp
)
154 if (!xdr_keystatus(xdrs
, &objp
->status
))
156 switch (objp
->status
) {
158 if (!xdr_key_netstarg(xdrs
, &objp
->key_netstres_u
.knet
))