From e4aced47ae1046850d846137ec72adfe32c57186 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 31 Dec 2000 15:34:47 +0000 Subject: Update. * posix/bsd-getpgrp.c: Add prototype to avoid warning. * sunrpc/svc_unix.c: Include for prototypes. * sunrpc/create_xid.c: Include for prototypes. * include/rpc/rpc_msg.h: Add prototypes for some functions. * include/rpc/auth.h: Likewise. * include/rpc/auth_des.h: Likewise. * include/rpc/clnt.h: Likewise. * include/rpc/rpc.h: Likewise. * include/rpc/svc.h: Likewise. * include/rpc/svc_auth.h: Likewise. * include/rpc/des_crypt.h: New file. --- ChangeLog | 16 ++++++++++++++++ include/rpc/auth.h | 4 ++++ include/rpc/auth_des.h | 9 +++++++++ include/rpc/clnt.h | 6 ++++++ include/rpc/des_crypt.h | 9 +++++++++ include/rpc/rpc.h | 6 ++++++ include/rpc/rpc_msg.h | 9 +++++++++ include/rpc/svc.h | 13 +++++++++++++ include/rpc/svc_auth.h | 11 +++++++++++ sunrpc/svc_unix.c | 1 + 10 files changed, 84 insertions(+) create mode 100644 include/rpc/des_crypt.h diff --git a/ChangeLog b/ChangeLog index 740238ffc8..e48097f15a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,21 @@ 2000-12-31 Andreas Jaeger + * posix/bsd-getpgrp.c: Add prototype to avoid warning. + + * sunrpc/svc_unix.c: Include for prototypes. + + * sunrpc/create_xid.c: Include for prototypes. + + * include/rpc/rpc_msg.h: Add prototypes for some functions. + * include/rpc/auth.h: Likewise. + * include/rpc/auth_des.h: Likewise. + * include/rpc/clnt.h: Likewise. + * include/rpc/rpc.h: Likewise. + * include/rpc/svc.h: Likewise. + * include/rpc/svc_auth.h: Likewise. + + * include/rpc/des_crypt.h: New file. + * malloc/memusagestat.c (main): Use return instead of exit to avoid warning. * io/pwd.c (main): Likewise. diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 40e95011d6..87fcd36de5 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -1,6 +1,10 @@ #ifndef _RPC_AUTH_H #include +/* Now define the internal interfaces. */ +struct key_netstarg; +extern int key_setnet (struct key_netstarg *arg); + #define DECLARE_NSS_PROTOTYPES(service) \ extern enum nss_status _nss_ ##service ## _netname2user \ (char netname[MAXNETNAMELEN + 1], uid_t *uidp, \ diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h index fa3622728b..014b30ca11 100644 --- a/include/rpc/auth_des.h +++ b/include/rpc/auth_des.h @@ -2,6 +2,15 @@ #include +extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred); +extern bool_t xdr_authdes_verf (register XDR *xdrs, + register struct authdes_verf *verf); +struct svc_req; +struct rpc_msg; +extern enum auth_stat _svcauth_des (register struct svc_req *rqst, + register struct rpc_msg *msg); + + #define DECLARE_NSS_PROTOTYPES(service) \ extern enum nss_status _nss_ ## service ## _getpublickey \ (const char *netname, char *pkey, int *errnop); \ diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h index b4493d1d90..071c008eb6 100644 --- a/include/rpc/clnt.h +++ b/include/rpc/clnt.h @@ -1 +1,7 @@ +#ifndef _RPC_CLNT_H #include + +/* Now define the internal interfaces. */ +extern int _openchild (const char *command, FILE **fto, FILE **ffrom); + +#endif diff --git a/include/rpc/des_crypt.h b/include/rpc/des_crypt.h new file mode 100644 index 0000000000..00ee921980 --- /dev/null +++ b/include/rpc/des_crypt.h @@ -0,0 +1,9 @@ +#ifndef __DES_CRYPT_H__ +#include + +/* Now define the internal interfaces. */ + +extern int xencrypt (char *secret, char *passwd); +extern int xdecrypt (char *secret, char *passwd); + +#endif diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index 1b5c5cd8de..f925e2b35e 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -1 +1,7 @@ +#ifndef _RPC_RPC_H #include + +/* Now define the internal interfaces. */ +extern unsigned long _create_xid (void); + +#endif diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h index 3c63730c1f..48fc533dc4 100644 --- a/include/rpc/rpc_msg.h +++ b/include/rpc/rpc_msg.h @@ -1 +1,10 @@ +#ifndef _RPC_MSG_H #include + +/* Now define the internal interfaces. */ + +extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr); +extern bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar); + + +#endif diff --git a/include/rpc/svc.h b/include/rpc/svc.h index 68aa67b429..bf948d51e2 100644 --- a/include/rpc/svc.h +++ b/include/rpc/svc.h @@ -1 +1,14 @@ +#ifndef _RPC_SVC_H #include + +/* Now define the internal interfaces. */ +extern int registerrpc (u_long prognum, u_long versnum, u_long procnum, + char *(*progname) (char *), xdrproc_t inproc, + xdrproc_t outproc); + +extern SVCXPRT *svcfd_create (int fd, u_int sendsize, u_int recvsize); + +extern int svcudp_enablecache (SVCXPRT *transp, u_long size); +extern SVCXPRT *svcunixfd_create (int fd, u_int sendsize, u_int recvsize); + +#endif diff --git a/include/rpc/svc_auth.h b/include/rpc/svc_auth.h index e2c226312e..9d2462bacb 100644 --- a/include/rpc/svc_auth.h +++ b/include/rpc/svc_auth.h @@ -1 +1,12 @@ +#ifndef _RPC_SVC_AUTH_H #include + +/* Now define the internal interfaces. */ +extern enum auth_stat _svcauth_unix (struct svc_req *rqst, + struct rpc_msg *msg); +extern enum auth_stat _svcauth_short (struct svc_req *rqst, + struct rpc_msg *msg); + + + +#endif diff --git a/sunrpc/svc_unix.c b/sunrpc/svc_unix.c index f47650afe5..4aa05a1475 100644 --- a/sunrpc/svc_unix.c +++ b/sunrpc/svc_unix.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include -- cgit 1.4.1