Path: blob/main/crypto/krb5/src/include/gssrpc/rpc.h
34907 views
/* @(#)rpc.h 2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */1/*2* Copyright (c) 2010, Oracle America, Inc.3*4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions are met:8*9* * Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*12* * Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in14* the documentation and/or other materials provided with the15* distribution.16*17* * Neither the name of the "Oracle America, Inc." nor the names of18* its contributors may be used to endorse or promote products19* derived from this software without specific prior written permission.20*21* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS22* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED23* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A24* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT25* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,26* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED27* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR28* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF29* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING30* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS31* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32*/3334/*35* rpc.h, Just includes the billions of rpc header files necessary to36* do remote procedure calling.37*/38#ifndef GSSRPC_RPC_H39#define GSSRPC_RPC_H4041#include <gssrpc/types.h> /* some typedefs */42#include <netinet/in.h>4344/* external data representation interfaces */45#include <gssrpc/xdr.h> /* generic (de)serializer */4647/* Client side only authentication */48#include <gssrpc/auth.h> /* generic authenticator (client side) */4950/* Client side (mostly) remote procedure call */51#include <gssrpc/clnt.h> /* generic rpc stuff */5253/* semi-private protocol headers */54#include <gssrpc/rpc_msg.h> /* protocol for rpc messages */55#include <gssrpc/auth_unix.h> /* protocol for unix style cred */56#include <gssrpc/auth_gss.h> /* RPCSEC_GSS */5758/* Server side only remote procedure callee */59#include <gssrpc/svc_auth.h> /* service side authenticator */60#include <gssrpc/svc.h> /* service manager and multiplexer */6162/*63* get the local host's IP address without consulting64* name service library functions65*/66GSSRPC__BEGIN_DECLS67extern int get_myaddress(struct sockaddr_in *);68extern int bindresvport(int, struct sockaddr_in *);69extern int bindresvport_sa(int, struct sockaddr *);70extern int callrpc(char *, rpcprog_t, rpcvers_t, rpcproc_t, xdrproc_t,71char *, xdrproc_t , char *);72extern int getrpcport(char *, rpcprog_t, rpcvers_t, rpcprot_t);73extern int gssrpc__rpc_dtablesize(void);74GSSRPC__END_DECLS7576#endif /* !defined(GSSRPC_RPC_H) */777879