xref: /freebsd/crypto/krb5/src/include/gssrpc/pmap_rmt.h (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1*7f2fe78bSCy Schubert /* @(#)pmap_rmt.h	2.1 88/07/29 4.0 RPCSRC; from 1.2 88/02/08 SMI */
2*7f2fe78bSCy Schubert /*
3*7f2fe78bSCy Schubert  * Copyright (c) 2010, Oracle America, Inc.
4*7f2fe78bSCy Schubert  *
5*7f2fe78bSCy Schubert  * All rights reserved.
6*7f2fe78bSCy Schubert  *
7*7f2fe78bSCy Schubert  * Redistribution and use in source and binary forms, with or without
8*7f2fe78bSCy Schubert  * modification, are permitted provided that the following conditions are met:
9*7f2fe78bSCy Schubert  *
10*7f2fe78bSCy Schubert  *     * Redistributions of source code must retain the above copyright
11*7f2fe78bSCy Schubert  *       notice, this list of conditions and the following disclaimer.
12*7f2fe78bSCy Schubert  *
13*7f2fe78bSCy Schubert  *     * Redistributions in binary form must reproduce the above copyright
14*7f2fe78bSCy Schubert  *       notice, this list of conditions and the following disclaimer in
15*7f2fe78bSCy Schubert  *       the documentation and/or other materials provided with the
16*7f2fe78bSCy Schubert  *       distribution.
17*7f2fe78bSCy Schubert  *
18*7f2fe78bSCy Schubert  *     * Neither the name of the "Oracle America, Inc." nor the names of
19*7f2fe78bSCy Schubert  *       its contributors may be used to endorse or promote products
20*7f2fe78bSCy Schubert  *       derived from this software without specific prior written permission.
21*7f2fe78bSCy Schubert  *
22*7f2fe78bSCy Schubert  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
23*7f2fe78bSCy Schubert  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
24*7f2fe78bSCy Schubert  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
25*7f2fe78bSCy Schubert  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26*7f2fe78bSCy Schubert  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27*7f2fe78bSCy Schubert  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
28*7f2fe78bSCy Schubert  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29*7f2fe78bSCy Schubert  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30*7f2fe78bSCy Schubert  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31*7f2fe78bSCy Schubert  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32*7f2fe78bSCy Schubert  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*7f2fe78bSCy Schubert  */
34*7f2fe78bSCy Schubert 
35*7f2fe78bSCy Schubert /*
36*7f2fe78bSCy Schubert  * Structures and XDR routines for parameters to and replies from
37*7f2fe78bSCy Schubert  * the portmapper remote-call-service.
38*7f2fe78bSCy Schubert  */
39*7f2fe78bSCy Schubert 
40*7f2fe78bSCy Schubert #ifndef GSSRPC_PMAP_RMT_H
41*7f2fe78bSCy Schubert #define GSSRPC_PMAP_RMT_H
42*7f2fe78bSCy Schubert GSSRPC__BEGIN_DECLS
43*7f2fe78bSCy Schubert 
44*7f2fe78bSCy Schubert struct rmtcallargs {
45*7f2fe78bSCy Schubert 	rpcprog_t prog;
46*7f2fe78bSCy Schubert 	rpcvers_t vers;
47*7f2fe78bSCy Schubert 	rpcproc_t proc;
48*7f2fe78bSCy Schubert 	uint32_t arglen;
49*7f2fe78bSCy Schubert 	caddr_t args_ptr;
50*7f2fe78bSCy Schubert 	xdrproc_t xdr_args;
51*7f2fe78bSCy Schubert };
52*7f2fe78bSCy Schubert 
53*7f2fe78bSCy Schubert bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *);
54*7f2fe78bSCy Schubert 
55*7f2fe78bSCy Schubert struct rmtcallres {
56*7f2fe78bSCy Schubert 	rpcport_t *port_ptr;
57*7f2fe78bSCy Schubert 	uint32_t resultslen;
58*7f2fe78bSCy Schubert 	caddr_t results_ptr;
59*7f2fe78bSCy Schubert 	xdrproc_t xdr_results;
60*7f2fe78bSCy Schubert };
61*7f2fe78bSCy Schubert 
62*7f2fe78bSCy Schubert bool_t xdr_rmtcallres(XDR *, struct rmtcallres *);
63*7f2fe78bSCy Schubert 
64*7f2fe78bSCy Schubert GSSRPC__END_DECLS
65*7f2fe78bSCy Schubert #endif /* !defined(GSSRPC_PMAP_RMT_H) */
66