xref: /freebsd/crypto/krb5/src/include/gssrpc/rpc.h (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1 /* @(#)rpc.h	2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */
2 /*
3  * Copyright (c) 2010, Oracle America, Inc.
4  *
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  *     * Redistributions of source code must retain the above copyright
11  *       notice, this list of conditions and the following disclaimer.
12  *
13  *     * Redistributions in binary form must reproduce the above copyright
14  *       notice, this list of conditions and the following disclaimer in
15  *       the documentation and/or other materials provided with the
16  *       distribution.
17  *
18  *     * Neither the name of the "Oracle America, Inc." nor the names of
19  *       its contributors may be used to endorse or promote products
20  *       derived from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
23  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
24  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
25  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
28  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
29  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
30  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 /*
36  * rpc.h, Just includes the billions of rpc header files necessary to
37  * do remote procedure calling.
38  */
39 #ifndef GSSRPC_RPC_H
40 #define GSSRPC_RPC_H
41 
42 #include <gssrpc/types.h>		/* some typedefs */
43 #include <netinet/in.h>
44 
45 /* external data representation interfaces */
46 #include <gssrpc/xdr.h>		/* generic (de)serializer */
47 
48 /* Client side only authentication */
49 #include <gssrpc/auth.h>		/* generic authenticator (client side) */
50 
51 /* Client side (mostly) remote procedure call */
52 #include <gssrpc/clnt.h>		/* generic rpc stuff */
53 
54 /* semi-private protocol headers */
55 #include <gssrpc/rpc_msg.h>	/* protocol for rpc messages */
56 #include <gssrpc/auth_unix.h>	/* protocol for unix style cred */
57 #include <gssrpc/auth_gss.h>	/* RPCSEC_GSS */
58 
59 /* Server side only remote procedure callee */
60 #include <gssrpc/svc_auth.h>	/* service side authenticator */
61 #include <gssrpc/svc.h>		/* service manager and multiplexer */
62 
63 /*
64  * get the local host's IP address without consulting
65  * name service library functions
66  */
67 GSSRPC__BEGIN_DECLS
68 extern int get_myaddress(struct sockaddr_in *);
69 extern int bindresvport(int, struct sockaddr_in *);
70 extern int bindresvport_sa(int, struct sockaddr *);
71 extern int callrpc(char *, rpcprog_t, rpcvers_t, rpcproc_t, xdrproc_t,
72 		   char *, xdrproc_t , char *);
73 extern int getrpcport(char *, rpcprog_t, rpcvers_t, rpcprot_t);
74 extern int gssrpc__rpc_dtablesize(void);
75 GSSRPC__END_DECLS
76 
77 #endif /* !defined(GSSRPC_RPC_H) */
78