|
Packit |
fd8b60 |
/* @(#)svc.h 2.2 88/07/29 4.0 RPCSRC; from 1.20 88/02/08 SMI */
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Copyright (c) 2010, Oracle America, Inc.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* All rights reserved.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* Redistribution and use in source and binary forms, with or without
|
|
Packit |
fd8b60 |
* modification, are permitted provided that the following conditions are met:
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* * Redistributions of source code must retain the above copyright
|
|
Packit |
fd8b60 |
* notice, this list of conditions and the following disclaimer.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* * Redistributions in binary form must reproduce the above copyright
|
|
Packit |
fd8b60 |
* notice, this list of conditions and the following disclaimer in
|
|
Packit |
fd8b60 |
* the documentation and/or other materials provided with the
|
|
Packit |
fd8b60 |
* distribution.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* * Neither the name of the "Oracle America, Inc." nor the names of
|
|
Packit |
fd8b60 |
* its contributors may be used to endorse or promote products
|
|
Packit |
fd8b60 |
* derived from this software without specific prior written permission.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
Packit |
fd8b60 |
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
Packit |
fd8b60 |
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
Packit |
fd8b60 |
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
Packit |
fd8b60 |
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
Packit |
fd8b60 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
Packit |
fd8b60 |
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
Packit |
fd8b60 |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
Packit |
fd8b60 |
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
Packit |
fd8b60 |
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
Packit |
fd8b60 |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* svc.h, Server-side remote procedure call interface.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#ifndef GSSRPC_SVC_H
|
|
Packit |
fd8b60 |
#define GSSRPC_SVC_H
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#include <gssrpc/svc_auth.h>
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
GSSRPC__BEGIN_DECLS
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* This interface must manage two items concerning remote procedure calling:
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* 1) An arbitrary number of transport connections upon which rpc requests
|
|
Packit |
fd8b60 |
* are received. The two most notable transports are TCP and UDP; they are
|
|
Packit |
fd8b60 |
* created and registered by routines in svc_tcp.c and svc_udp.c, respectively;
|
|
Packit |
fd8b60 |
* they in turn call xprt_register and xprt_unregister.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* 2) An arbitrary number of locally registered services. Services are
|
|
Packit |
fd8b60 |
* described by the following four data: program number, version number,
|
|
Packit |
fd8b60 |
* "service dispatch" function, a transport handle, and a boolean that
|
|
Packit |
fd8b60 |
* indicates whether or not the exported program should be registered with a
|
|
Packit |
fd8b60 |
* local binder service; if true the program's number and version and the
|
|
Packit |
fd8b60 |
* port number from the transport handle are registered with the binder.
|
|
Packit |
fd8b60 |
* These data are registered with the rpc svc system via svc_register.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* A service's dispatch function is called whenever an rpc request comes in
|
|
Packit |
fd8b60 |
* on a transport. The request's program and version numbers must match
|
|
Packit |
fd8b60 |
* those of the registered service. The dispatch function is passed two
|
|
Packit |
fd8b60 |
* parameters, struct svc_req * and SVCXPRT *, defined below.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
enum xprt_stat {
|
|
Packit |
fd8b60 |
XPRT_DIED,
|
|
Packit |
fd8b60 |
XPRT_MOREREQS,
|
|
Packit |
fd8b60 |
XPRT_IDLE
|
|
Packit |
fd8b60 |
};
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Server side transport handle
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
typedef struct SVCXPRT {
|
|
Packit |
fd8b60 |
#ifdef _WIN32
|
|
Packit |
fd8b60 |
SOCKET xp_sock;
|
|
Packit |
fd8b60 |
#else
|
|
Packit |
fd8b60 |
int xp_sock;
|
|
Packit |
fd8b60 |
#endif
|
|
Packit |
fd8b60 |
u_short xp_port; /* associated port number */
|
|
Packit |
fd8b60 |
struct xp_ops {
|
|
Packit |
fd8b60 |
/* receive incomming requests */
|
|
Packit |
fd8b60 |
bool_t (*xp_recv)(struct SVCXPRT *, struct rpc_msg *);
|
|
Packit |
fd8b60 |
/* get transport status */
|
|
Packit |
fd8b60 |
enum xprt_stat (*xp_stat)(struct SVCXPRT *);
|
|
Packit |
fd8b60 |
/* get arguments */
|
|
Packit |
fd8b60 |
bool_t (*xp_getargs)(struct SVCXPRT *, xdrproc_t,
|
|
Packit |
fd8b60 |
void *);
|
|
Packit |
fd8b60 |
/* send reply */
|
|
Packit |
fd8b60 |
bool_t (*xp_reply)(struct SVCXPRT *,
|
|
Packit |
fd8b60 |
struct rpc_msg *);
|
|
Packit |
fd8b60 |
/* free mem allocated for args */
|
|
Packit |
fd8b60 |
bool_t (*xp_freeargs)(struct SVCXPRT *, xdrproc_t,
|
|
Packit |
fd8b60 |
void *);
|
|
Packit |
fd8b60 |
/* destroy this struct */
|
|
Packit |
fd8b60 |
void (*xp_destroy)(struct SVCXPRT *);
|
|
Packit |
fd8b60 |
} *xp_ops;
|
|
Packit |
fd8b60 |
int xp_addrlen; /* length of remote address */
|
|
Packit |
fd8b60 |
struct sockaddr_in xp_raddr; /* remote address */
|
|
Packit |
fd8b60 |
struct opaque_auth xp_verf; /* raw response verifier */
|
|
Packit |
fd8b60 |
SVCAUTH *xp_auth; /* auth flavor of current req */
|
|
Packit |
fd8b60 |
void *xp_p1; /* private */
|
|
Packit |
fd8b60 |
void *xp_p2; /* private */
|
|
Packit |
fd8b60 |
int xp_laddrlen; /* lenght of local address */
|
|
Packit |
fd8b60 |
struct sockaddr_in xp_laddr; /* local address */
|
|
Packit |
fd8b60 |
} SVCXPRT;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Approved way of getting address of caller
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
#define svc_getcaller(x) (&(x)->xp_raddr)
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Operations defined on an SVCXPRT handle
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* SVCXPRT *xprt;
|
|
Packit |
fd8b60 |
* struct rpc_msg *msg;
|
|
Packit |
fd8b60 |
* xdrproc_t xargs;
|
|
Packit |
fd8b60 |
* caddr_t argsp;
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
#define SVC_RECV(xprt, msg) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_recv)((xprt), (msg))
|
|
Packit |
fd8b60 |
#define svc_recv(xprt, msg) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_recv)((xprt), (msg))
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_STAT(xprt) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_stat)(xprt)
|
|
Packit |
fd8b60 |
#define svc_stat(xprt) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_stat)(xprt)
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_GETARGS(xprt, xargs, argsp) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
|
|
Packit |
fd8b60 |
#define svc_getargs(xprt, xargs, argsp) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_getargs)((xprt), (xargs), (argsp))
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_GETARGS_REQ(xprt, req, xargs, argsp) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_getargs_req)((xprt), (req), (xargs), (argsp))
|
|
Packit |
fd8b60 |
#define svc_getargs_req(xprt, req, xargs, argsp) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_getargs_req)((xprt), (req), (xargs), (argsp))
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_REPLY(xprt, msg) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_reply) ((xprt), (msg))
|
|
Packit |
fd8b60 |
#define svc_reply(xprt, msg) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_reply) ((xprt), (msg))
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_REPLY_REQ(xprt, req, msg) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_reply_req) ((xprt), (req), (msg))
|
|
Packit |
fd8b60 |
#define svc_reply_req(xprt, msg) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_reply_req) ((xprt), (req), (msg))
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_FREEARGS(xprt, xargs, argsp) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp))
|
|
Packit |
fd8b60 |
#define svc_freeargs(xprt, xargs, argsp) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_freeargs)((xprt), (xargs), (argsp))
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#define SVC_DESTROY(xprt) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_destroy)(xprt)
|
|
Packit |
fd8b60 |
#define svc_destroy(xprt) \
|
|
Packit |
fd8b60 |
(*(xprt)->xp_ops->xp_destroy)(xprt)
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Service request
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
struct svc_req {
|
|
Packit |
fd8b60 |
rpcprog_t rq_prog; /* service program number */
|
|
Packit |
fd8b60 |
rpcvers_t rq_vers; /* service protocol version */
|
|
Packit |
fd8b60 |
rpcproc_t rq_proc; /* the desired procedure */
|
|
Packit |
fd8b60 |
struct opaque_auth rq_cred; /* raw creds from the wire */
|
|
Packit |
fd8b60 |
void * rq_clntcred; /* read only cooked client cred */
|
|
Packit |
fd8b60 |
void * rq_svccred; /* read only svc cred/context */
|
|
Packit |
fd8b60 |
void * rq_clntname; /* read only client name */
|
|
Packit |
fd8b60 |
SVCXPRT *rq_xprt; /* associated transport */
|
|
Packit |
fd8b60 |
/* The request's auth flavor *should* be here, but the svc_req */
|
|
Packit |
fd8b60 |
/* isn't passed around everywhere it is necessary. The */
|
|
Packit |
fd8b60 |
/* transport *is* passed around, so the auth flavor it stored */
|
|
Packit |
fd8b60 |
/* there. This means that the transport must be single */
|
|
Packit |
fd8b60 |
/* threaded, but other parts of SunRPC already require that. */
|
|
Packit |
fd8b60 |
/*SVCAUTH *rq_auth; associated auth flavor */
|
|
Packit |
fd8b60 |
};
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Service registration
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* svc_register(xprt, prog, vers, dispatch, protocol)
|
|
Packit |
fd8b60 |
* SVCXPRT *xprt;
|
|
Packit |
fd8b60 |
* rpcprog_t prog;
|
|
Packit |
fd8b60 |
* rpcvers_t vers;
|
|
Packit |
fd8b60 |
* void (*dispatch)();
|
|
Packit |
fd8b60 |
* int protocol; like IPPROTO_TCP or _UDP; zero means do not register
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* registerrpc(prog, vers, proc, routine, inproc, outproc)
|
|
Packit |
fd8b60 |
* returns 0 upon success, -1 if error.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern bool_t svc_register(SVCXPRT *, rpcprog_t, rpcvers_t,
|
|
Packit |
fd8b60 |
void (*)(struct svc_req *, SVCXPRT *), int);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
extern int registerrpc(rpcprog_t, rpcvers_t, rpcproc_t,
|
|
Packit |
fd8b60 |
char *(*)(void *),
|
|
Packit |
fd8b60 |
xdrproc_t, xdrproc_t);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Service un-registration
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* svc_unregister(prog, vers)
|
|
Packit |
fd8b60 |
* rpcprog_t prog;
|
|
Packit |
fd8b60 |
* rpcvers_t vers;
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern void svc_unregister(rpcprog_t, rpcvers_t);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Transport registration.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* xprt_register(xprt)
|
|
Packit |
fd8b60 |
* SVCXPRT *xprt;
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern void xprt_register(SVCXPRT *);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Transport un-register
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* xprt_unregister(xprt)
|
|
Packit |
fd8b60 |
* SVCXPRT *xprt;
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern void xprt_unregister(SVCXPRT *);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* When the service routine is called, it must first check to see if
|
|
Packit |
fd8b60 |
* it knows about the procedure; if not, it should call svcerr_noproc
|
|
Packit |
fd8b60 |
* and return. If so, it should deserialize its arguments via
|
|
Packit |
fd8b60 |
* SVC_GETARGS or the new SVC_GETARGS_REQ (both defined above). If
|
|
Packit |
fd8b60 |
* the deserialization does not work, svcerr_decode should be called
|
|
Packit |
fd8b60 |
* followed by a return. Successful decoding of the arguments should
|
|
Packit |
fd8b60 |
* be followed the execution of the procedure's code and a call to
|
|
Packit |
fd8b60 |
* svc_sendreply or the new svc_sendreply_req.
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* Also, if the service refuses to execute the procedure due to too-
|
|
Packit |
fd8b60 |
* weak authentication parameters, svcerr_weakauth should be called.
|
|
Packit |
fd8b60 |
* Note: do not confuse access-control failure with weak authentication!
|
|
Packit |
fd8b60 |
*
|
|
Packit |
fd8b60 |
* NB: In pure implementations of rpc, the caller always waits for a reply
|
|
Packit |
fd8b60 |
* msg. This message is sent when svc_sendreply is called.
|
|
Packit |
fd8b60 |
* Therefore pure service implementations should always call
|
|
Packit |
fd8b60 |
* svc_sendreply even if the function logically returns void; use
|
|
Packit |
fd8b60 |
* xdr.h - xdr_void for the xdr routine. HOWEVER, tcp based rpc allows
|
|
Packit |
fd8b60 |
* for the abuse of pure rpc via batched calling or pipelining. In the
|
|
Packit |
fd8b60 |
* case of a batched call, svc_sendreply should NOT be called since
|
|
Packit |
fd8b60 |
* this would send a return message, which is what batching tries to avoid.
|
|
Packit |
fd8b60 |
* It is the service/protocol writer's responsibility to know which calls are
|
|
Packit |
fd8b60 |
* batched and which are not. Warning: responding to batch calls may
|
|
Packit |
fd8b60 |
* deadlock the caller and server processes!
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
extern bool_t svc_sendreply(SVCXPRT *, xdrproc_t, caddr_t);
|
|
Packit |
fd8b60 |
extern void svcerr_decode(SVCXPRT *);
|
|
Packit |
fd8b60 |
extern void svcerr_weakauth(SVCXPRT *);
|
|
Packit |
fd8b60 |
extern void svcerr_noproc(SVCXPRT *);
|
|
Packit |
fd8b60 |
extern void svcerr_progvers(SVCXPRT *, rpcvers_t, rpcvers_t);
|
|
Packit |
fd8b60 |
extern void svcerr_auth(SVCXPRT *, enum auth_stat);
|
|
Packit |
fd8b60 |
extern void svcerr_noprog(SVCXPRT *);
|
|
Packit |
fd8b60 |
extern void svcerr_systemerr(SVCXPRT *);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Lowest level dispatching -OR- who owns this process anyway.
|
|
Packit |
fd8b60 |
* Somebody has to wait for incoming requests and then call the correct
|
|
Packit |
fd8b60 |
* service routine. The routine svc_run does infinite waiting; i.e.,
|
|
Packit |
fd8b60 |
* svc_run never returns.
|
|
Packit |
fd8b60 |
* Since another (co-existant) package may wish to selectively wait for
|
|
Packit |
fd8b60 |
* incoming calls or other events outside of the rpc architecture, the
|
|
Packit |
fd8b60 |
* routine svc_getreq is provided. It must be passed readfds, the
|
|
Packit |
fd8b60 |
* "in-place" results of a select system call (see select, section 2).
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Global keeper of rpc service descriptors in use
|
|
Packit |
fd8b60 |
* dynamic; must be inspected before each call to select
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern int svc_maxfd;
|
|
Packit |
fd8b60 |
#ifdef FD_SETSIZE
|
|
Packit |
fd8b60 |
extern fd_set svc_fdset;
|
|
Packit |
fd8b60 |
/* RENAMED */
|
|
Packit |
fd8b60 |
#define gssrpc_svc_fds gsssrpc_svc_fdset.fds_bits[0] /* compatibility */
|
|
Packit |
fd8b60 |
#else
|
|
Packit |
fd8b60 |
extern int svc_fds;
|
|
Packit |
fd8b60 |
#endif /* def FD_SETSIZE */
|
|
Packit |
fd8b60 |
extern int svc_maxfd;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* a small program implemented by the svc_rpc implementation itself;
|
|
Packit |
fd8b60 |
* also see clnt.h for protocol numbers.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern void rpctest_service();
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
extern void svc_getreq(int);
|
|
Packit |
fd8b60 |
#ifdef FD_SETSIZE
|
|
Packit |
fd8b60 |
extern void svc_getreqset(fd_set *);/* takes fdset instead of int */
|
|
Packit |
fd8b60 |
extern void svc_getreqset2(fd_set *, int);
|
|
Packit |
fd8b60 |
#else
|
|
Packit |
fd8b60 |
extern void svc_getreqset(int *);
|
|
Packit |
fd8b60 |
#endif
|
|
Packit |
fd8b60 |
extern void svc_run(void); /* never returns */
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Socket to use on svcxxx_create call to get default socket
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
#define RPC_ANYSOCK -1
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* These are the existing service side transport implementations
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Memory based rpc for testing and timing.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern SVCXPRT *svcraw_create(void);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Udp based rpc.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern SVCXPRT *svcudp_create(int);
|
|
Packit |
fd8b60 |
extern SVCXPRT *svcudp_bufcreate(int, u_int, u_int);
|
|
Packit |
fd8b60 |
extern int svcudp_enablecache(SVCXPRT *, uint32_t);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Tcp based rpc.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern SVCXPRT *svctcp_create(int, u_int, u_int);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/*
|
|
Packit |
fd8b60 |
* Like svtcp_create(), except the routine takes any *open* UNIX file
|
|
Packit |
fd8b60 |
* descriptor as its first input.
|
|
Packit |
fd8b60 |
*/
|
|
Packit |
fd8b60 |
extern SVCXPRT *svcfd_create(int, u_int, u_int);
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
/* XXX add auth_gsapi_log_*? */
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
GSSRPC__END_DECLS
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
#endif /* !defined(GSSRPC_SVC_H) */
|