+Sun Feb 18 17:48:35 2001 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * xdr.h: Flush out prototypes for xdrmem_create(),
+ xdrstdio_create(), xdrrec_create(), xdralloc_create(),
+ xdralloc_release(), xdrrec_endofrecord(), xdrrec_skiprecord(),
+ xdrrec_eof(), xdralloc_getdata(). Add prototype for
+ gssrpc_xdr_fre().
+
+ * xdr.c: Argument to gssrpc_xdr_free(0 changed from char * to void
+ *. xdr_u_char() changed to take unsigned char * instead of char *.
+
+ * auth_unix.c: Include unistd.h and string.h for
+ prototypes. Declare marshal_new_auth() as static void instead of
+ static bool_t based on usage.
+
+ * auth.h, svc_auth.h: Provide full prototypes for a number of
+ functions.
+
2000-06-21 Tom Yu <tlyu@mit.edu>
* svc_auth_gssapi.c (_svcauth_gssapi): Missed a rename. From
#define authnone_create gssrpc_authnone_create
#define authdes_create gssrpc_authdes_create
-extern AUTH *authunix_create();
-extern AUTH *authunix_create_default(); /* takes no parameters */
-extern AUTH *authnone_create(); /* takes no parameters */
+extern AUTH *authunix_create(char *machname, int uid, int gid, int len,
+ int *aup_gids);
+extern AUTH *authunix_create_default(void); /* takes no parameters */
+extern AUTH *authnone_create(void); /* takes no parameters */
extern AUTH *authdes_create();
/*
extern SVCAUTH svc_auth_any;
+#include <gssrpc/svc.h>
+
/*
* Server side authenticator
*/
#define _authenticate _gssrpc_authenticate
-extern enum auth_stat _authenticate();
+extern enum auth_stat _authenticate(struct svc_req *rqst, struct rpc_msg *msg,
+ bool_t *no_dispatch);
#define SVCAUTH_WRAP(auth, xdrs, xfunc, xwhere) \
((*((auth)->svc_ah_ops->svc_ah_wrap))(auth, xdrs, xfunc, xwhere))
#ifndef __XDR_HEADER__
#define __XDR_HEADER__
+/* We need FILE. */
+#include <stdio.h>
+
/*
* Make sure we have a definition for PROTOTYPE.
*/
extern bool_t xdr_char
PROTOTYPE((XDR *, char *));
extern bool_t xdr_u_char
-PROTOTYPE((XDR *, char *));
+PROTOTYPE((XDR *, unsigned char *));
extern bool_t xdr_vector
PROTOTYPE((XDR *, char *, unsigned int, unsigned int, xdrproc_t));
extern bool_t xdr_float
#define xdrrec_eof gssrpc_xdrrec_eof
#define xdralloc_getdata gssrpc_xdralloc_getdata
-extern void xdrmem_create(); /* XDR using memory buffers */
-extern void xdrstdio_create(); /* XDR using stdio library */
-extern void xdrrec_create(); /* XDR pseudo records for tcp */
-extern void xdralloc_create(); /* XDR allocating memory buffer */
-extern void xdralloc_release(); /* destroy xdralloc, save buf */
-extern bool_t xdrrec_endofrecord(); /* make end of xdr record */
-extern bool_t xdrrec_skiprecord(); /* move to beginning of next record */
-extern bool_t xdrrec_eof(); /* true if no more input */
-extern caddr_t xdralloc_getdata(); /* get buffer from xdralloc */
+/* XDR allocating memory buffer */
+extern void xdralloc_create PROTOTYPE((XDR *xdrs, enum xdr_op op));
+
+/* destroy xdralloc, save buf */
+extern void xdralloc_release PROTOTYPE((XDR *xdrs));
+
+/* get buffer from xdralloc */
+extern caddr_t xdralloc_getdata PROTOTYPE((XDR *xdrs));
+
+/* XDR using memory buffers */
+extern void xdrmem_create PROTOTYPE((XDR *xdrs, caddr_t addr,
+ unsigned int size, enum xdr_op xop));
+
+/* XDR using stdio library */
+extern void xdrstdio_create PROTOTYPE((XDR *xdrs, FILE *file,
+ enum xdr_op op));
+
+/* XDR pseudo records for tcp */
+extern void xdrrec_create PROTOTYPE((XDR *xdrs, unsigned int sendsize,
+ unsigned int recvsize, caddr_t tcp_handle,
+ int (*readit) (caddr_t, caddr_t, int),
+ int (*writeit) (caddr_t, caddr_t, int)));
+
+/* make end of xdr record */
+extern bool_t xdrrec_endofrecord PROTOTYPE((XDR *xdrs, bool_t sendnow));
+
+/* move to beginning of next record */
+extern bool_t xdrrec_skiprecord PROTOTYPE((XDR *xdrs));
+
+/* true if no more input */
+extern bool_t xdrrec_eof PROTOTYPE((XDR *xdrs));
+/* free memory buffers for xdr */
+extern void gssrpc_xdr_free PROTOTYPE((xdrproc_t proc, void *__objp));
#endif /* !__XDR_HEADER__ */