sync
This commit is contained in:
parent
0f55503fed
commit
ab90ba3a7c
92 changed files with 264 additions and 259 deletions
|
@ -72,8 +72,8 @@ __BEGIN_DECLS
|
|||
extern bool_t xdr_authunix_parms(XDR *, struct authunix_parms *);
|
||||
__END_DECLS
|
||||
|
||||
/*
|
||||
* If a response verifier has flavor AUTH_SHORT,
|
||||
/*
|
||||
* If a response verifier has flavor AUTH_SHORT,
|
||||
* then the body of the response verifier encapsulates the following structure;
|
||||
* again it is serialized in the obvious fashion.
|
||||
*/
|
||||
|
|
|
@ -121,7 +121,7 @@ typedef struct __rpc_client {
|
|||
const struct clnt_ops {
|
||||
/* call remote procedure */
|
||||
enum clnt_stat (*cl_call)(struct __rpc_client *,
|
||||
unsigned long, xdrproc_t, caddr_t,
|
||||
unsigned long, xdrproc_t, caddr_t,
|
||||
xdrproc_t, caddr_t, struct timeval);
|
||||
/* abort a call */
|
||||
void (*cl_abort)(struct __rpc_client *);
|
||||
|
@ -134,7 +134,7 @@ typedef struct __rpc_client {
|
|||
/* destroy this structure */
|
||||
void (*cl_destroy)(struct __rpc_client *);
|
||||
/* the ioctl() of rpc */
|
||||
bool_t (*cl_control)(struct __rpc_client *,
|
||||
bool_t (*cl_control)(struct __rpc_client *,
|
||||
unsigned int, void *);
|
||||
} *cl_ops;
|
||||
caddr_t cl_private; /* private stuff */
|
||||
|
@ -244,7 +244,7 @@ typedef struct __rpc_client {
|
|||
|
||||
/*
|
||||
* Below are the client handle creation routines for the various
|
||||
* implementations of client side rpc. They can return NULL if a
|
||||
* implementations of client side rpc. They can return NULL if a
|
||||
* creation failure occurs.
|
||||
*/
|
||||
|
||||
|
@ -286,7 +286,7 @@ __END_DECLS
|
|||
* unsigned int recvsz;
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern CLIENT *clnttcp_create(struct sockaddr_in *, unsigned long,
|
||||
extern CLIENT *clnttcp_create(struct sockaddr_in *, unsigned long,
|
||||
unsigned long, int *, unsigned int, unsigned int);
|
||||
__END_DECLS
|
||||
|
||||
|
@ -313,9 +313,9 @@ __END_DECLS
|
|||
* unsigned int recvsz;
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern CLIENT *clntudp_create(struct sockaddr_in *, unsigned long,
|
||||
extern CLIENT *clntudp_create(struct sockaddr_in *, unsigned long,
|
||||
unsigned long, struct timeval, int *);
|
||||
extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, unsigned long,
|
||||
extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, unsigned long,
|
||||
unsigned long, struct timeval, int *, unsigned int, unsigned int);
|
||||
__END_DECLS
|
||||
|
||||
|
@ -330,7 +330,7 @@ __END_DECLS
|
|||
|
||||
/*
|
||||
* Like clnt_perror(), but is more verbose in its output
|
||||
*/
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern void clnt_perrno(enum clnt_stat); /* stderr */
|
||||
extern char *clnt_sperrno(enum clnt_stat); /* string */
|
||||
|
@ -345,7 +345,7 @@ extern char *clnt_sperror(CLIENT *, char *); /* string */
|
|||
__END_DECLS
|
||||
|
||||
|
||||
/*
|
||||
/*
|
||||
* If a creation fails, the following allows the user to figure out why.
|
||||
*/
|
||||
struct rpc_createerr {
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap_clnt.h 1.11 88/02/08 SMI
|
||||
* from: @(#)pmap_clnt.h 1.11 88/02/08 SMI
|
||||
* @(#)pmap_clnt.h 2.1 88/07/29 4.0 RPCSRC
|
||||
*/
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
|||
* head = pmap_getmaps(address);
|
||||
* clnt_stat = pmap_rmtcall(address, program, version, procedure,
|
||||
* xdrargs, argsp, xdrres, resp, tout, port_ptr)
|
||||
* (works for udp only.)
|
||||
* (works for udp only.)
|
||||
* clnt_stat = clnt_broadcast(program, version, procedure,
|
||||
* xdrargs, argsp, xdrres, resp, eachresult)
|
||||
* (like pmap_rmtcall, except the call is broadcasted to all
|
||||
|
@ -67,18 +67,18 @@
|
|||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
extern bool_t pmap_set(unsigned long, unsigned long, unsigned int,
|
||||
extern bool_t pmap_set(unsigned long, unsigned long, unsigned int,
|
||||
int);
|
||||
extern bool_t pmap_unset(unsigned long, unsigned long);
|
||||
extern struct pmaplist *pmap_getmaps(struct sockaddr_in *);
|
||||
extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, unsigned long,
|
||||
unsigned long, unsigned long, xdrproc_t, caddr_t,
|
||||
xdrproc_t, caddr_t, struct timeval,
|
||||
extern enum clnt_stat pmap_rmtcall(struct sockaddr_in *, unsigned long,
|
||||
unsigned long, unsigned long, xdrproc_t, caddr_t,
|
||||
xdrproc_t, caddr_t, struct timeval,
|
||||
unsigned long *);
|
||||
extern enum clnt_stat clnt_broadcast(unsigned long, unsigned long,
|
||||
extern enum clnt_stat clnt_broadcast(unsigned long, unsigned long,
|
||||
unsigned long, xdrproc_t, char *, xdrproc_t, char *,
|
||||
bool_t (*)(caddr_t, struct sockaddr_in *));
|
||||
extern unsigned short pmap_getport(struct sockaddr_in *, unsigned long,
|
||||
extern unsigned short pmap_getport(struct sockaddr_in *, unsigned long,
|
||||
unsigned long, unsigned int);
|
||||
__END_DECLS
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap_prot.h 1.14 88/02/08 SMI
|
||||
* from: @(#)pmap_prot.h 1.14 88/02/08 SMI
|
||||
* @(#)pmap_prot.h 2.1 88/07/29 4.0 RPCSRC
|
||||
*/
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)pmap_rmt.h 1.2 88/02/08 SMI
|
||||
* from: @(#)pmap_rmt.h 1.2 88/02/08 SMI
|
||||
* @(#)pmap_rmt.h 2.1 88/07/29 4.0 RPCSRC
|
||||
*/
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)rpc.h 1.9 88/02/08 SMI
|
||||
* from: @(#)rpc.h 1.9 88/02/08 SMI
|
||||
* @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC
|
||||
*/
|
||||
|
||||
|
@ -61,7 +61,7 @@
|
|||
#include <rpc/rpc_msg.h> /* protocol for rpc messages */
|
||||
#include <rpc/auth_unix.h> /* protocol for unix style cred */
|
||||
/*
|
||||
* Uncomment-out the next line if you are building the rpc library with
|
||||
* Uncomment-out the next line if you are building the rpc library with
|
||||
* DES Authentication (see the README file in the secure_rpc/ directory).
|
||||
*/
|
||||
#ifdef notdef
|
||||
|
|
|
@ -7,21 +7,21 @@
|
|||
* This package is an SSL implementation written
|
||||
* by Eric Young (eay@mincom.oz.au).
|
||||
* The implementation was written so as to conform with Netscapes SSL.
|
||||
*
|
||||
*
|
||||
* This library is free for commercial and non-commercial use as long as
|
||||
* the following conditions are aheared to. The following conditions
|
||||
* apply to all code found in this distribution, be it the RC4, RSA,
|
||||
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
|
||||
* included with this distribution is covered by the same copyright terms
|
||||
* except that the holder is Tim Hudson (tjh@mincom.oz.au).
|
||||
*
|
||||
*
|
||||
* Copyright remains Eric Young's, and as such any Copyright notices in
|
||||
* the code are not to be removed.
|
||||
* If this package is used in a product, Eric Young should be given attribution
|
||||
* as the author of the parts of the library used.
|
||||
* This can be in the form of a textual message at program startup or
|
||||
* in documentation (online or textual) provided with the package.
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
|
@ -36,10 +36,10 @@
|
|||
* Eric Young (eay@mincom.oz.au)"
|
||||
* The word 'cryptographic' can be left out if the rouines from the library
|
||||
* being used are not cryptographic related :-).
|
||||
* 4. If you include any Windows specific code (or a derivative thereof) from
|
||||
* 4. If you include any Windows specific code (or a derivative thereof) from
|
||||
* the apps directory (application code) you must include an acknowledgement:
|
||||
* "This product includes software written by Tim Hudson (tjh@mincom.oz.au)"
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
|
@ -51,7 +51,7 @@
|
|||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
*
|
||||
* The licence and distribution terms for any publically available version or
|
||||
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
||||
* copied and put under another distribution licence
|
||||
|
@ -128,8 +128,8 @@ struct desparams {
|
|||
*/
|
||||
#define DESIOCBLOCK _IOWR(d, 6, struct desparams)
|
||||
|
||||
/*
|
||||
/*
|
||||
* Encrypt of small amount of data, quickly
|
||||
*/
|
||||
#define DESIOCQUICK _IOWR(d, 7, struct desparams)
|
||||
#define DESIOCQUICK _IOWR(d, 7, struct desparams)
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)svc.h 1.20 88/02/08 SMI
|
||||
* from: @(#)svc.h 1.20 88/02/08 SMI
|
||||
* @(#)svc.h 2.2 88/07/29 4.0 RPCSRC
|
||||
*/
|
||||
|
||||
|
@ -167,7 +167,7 @@ struct svc_req {
|
|||
* unsigned long prog;
|
||||
* unsigned long vers;
|
||||
* void (*dispatch)();
|
||||
* int protocol; like TCP or UDP, zero means do not register
|
||||
* int protocol; like TCP or UDP, zero means do not register
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern bool_t svc_register(SVCXPRT *, unsigned long, unsigned long,
|
||||
|
@ -211,7 +211,7 @@ __END_DECLS
|
|||
/*
|
||||
* When the service routine is called, it must first check to see if it
|
||||
* knows about the procedure; if not, it should call svcerr_noproc
|
||||
* and return. If so, it should deserialize its arguments via
|
||||
* and return. If so, it should deserialize its arguments via
|
||||
* SVC_GETARGS (defined above). If the deserialization does not work,
|
||||
* svcerr_decode should be called followed by a return. Successful
|
||||
* decoding of the arguments should be followed the execution of the
|
||||
|
@ -222,7 +222,7 @@ __END_DECLS
|
|||
* Note: do not confuse access-control failure with weak authentication!
|
||||
*
|
||||
* NB: In pure implementations of rpc, the caller always waits for a reply
|
||||
* msg. This message is sent when svc_sendreply is called.
|
||||
* msg. This message is sent when svc_sendreply is called.
|
||||
* Therefore pure service implementations should always call
|
||||
* svc_sendreply even if the function logically returns void; use
|
||||
* xdr.h - xdr_void for the xdr routine. HOWEVER, tcp based rpc allows
|
||||
|
@ -244,7 +244,7 @@ extern void svcerr_auth(SVCXPRT *, enum auth_stat);
|
|||
extern void svcerr_noprog(SVCXPRT *);
|
||||
extern void svcerr_systemerr(SVCXPRT *);
|
||||
__END_DECLS
|
||||
|
||||
|
||||
/*
|
||||
* Lowest level dispatching -OR- who owns this process anyway.
|
||||
* Somebody has to wait for incoming requests and then call the correct
|
||||
|
@ -258,7 +258,7 @@ __END_DECLS
|
|||
|
||||
/*
|
||||
* Global keeper of rpc service descriptors in use
|
||||
* dynamic; must be inspected before each call to select
|
||||
* dynamic; must be inspected before each call to select
|
||||
*/
|
||||
#include <sys/select.h> /* for fd_set */
|
||||
extern fd_set svc_fdset;
|
||||
|
|
|
@ -105,10 +105,10 @@ typedef struct __rpc_xdr {
|
|||
/* put a long to " */
|
||||
bool_t (*x_putlong)(struct __rpc_xdr *, long *);
|
||||
/* get some bytes from " */
|
||||
bool_t (*x_getbytes)(struct __rpc_xdr *, caddr_t,
|
||||
bool_t (*x_getbytes)(struct __rpc_xdr *, caddr_t,
|
||||
unsigned int);
|
||||
/* put some bytes to " */
|
||||
bool_t (*x_putbytes)(struct __rpc_xdr *, caddr_t,
|
||||
bool_t (*x_putbytes)(struct __rpc_xdr *, caddr_t,
|
||||
unsigned int);
|
||||
/* returns bytes off from beginning */
|
||||
unsigned int (*x_getpostn)(struct __rpc_xdr *);
|
||||
|
@ -254,16 +254,16 @@ extern bool_t xdr_int64_t(XDR *, int64_t *);
|
|||
extern bool_t xdr_u_int64_t(XDR *, u_int64_t *);
|
||||
extern bool_t xdr_bool(XDR *, bool_t *);
|
||||
extern bool_t xdr_enum(XDR *, enum_t *);
|
||||
extern bool_t xdr_array(XDR *, char **, unsigned int *, unsigned int,
|
||||
extern bool_t xdr_array(XDR *, char **, unsigned int *, unsigned int,
|
||||
unsigned int, xdrproc_t);
|
||||
extern bool_t xdr_bytes(XDR *, char **, unsigned int *, unsigned int);
|
||||
extern bool_t xdr_opaque(XDR *, caddr_t, unsigned int);
|
||||
extern bool_t xdr_string(XDR *, char **, unsigned int);
|
||||
extern bool_t xdr_union(XDR *, enum_t *, char *, struct xdr_discrim *,
|
||||
extern bool_t xdr_union(XDR *, enum_t *, char *, struct xdr_discrim *,
|
||||
xdrproc_t);
|
||||
extern bool_t xdr_char(XDR *, char *);
|
||||
extern bool_t xdr_u_char(XDR *, unsigned char *);
|
||||
extern bool_t xdr_vector(XDR *, char *, unsigned int, unsigned int,
|
||||
extern bool_t xdr_vector(XDR *, char *, unsigned int, unsigned int,
|
||||
xdrproc_t);
|
||||
extern bool_t xdr_float(XDR *, float *);
|
||||
extern bool_t xdr_double(XDR *, double *);
|
||||
|
@ -277,7 +277,7 @@ __END_DECLS
|
|||
* Common opaque bytes objects used by many rpc protocols;
|
||||
* declared here due to commonality.
|
||||
*/
|
||||
#define MAX_NETOBJ_SZ 1024
|
||||
#define MAX_NETOBJ_SZ 1024
|
||||
struct netobj {
|
||||
unsigned int n_len;
|
||||
char *n_bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue