summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc/xdr_rec.c
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-06-28 20:46:58 +0000
committerEzra Peisach <epeisach@mit.edu>2001-06-28 20:46:58 +0000
commitab9f9a4a46e93259281d198a9fa9420886acd895 (patch)
tree7bcc54a36ed419869208067efe82fd1084defeea /src/lib/rpc/xdr_rec.c
parent1af8e1107c28fd2ca3ab55486d0e0061509ec566 (diff)
downloadkrb5-ab9f9a4a46e93259281d198a9fa9420886acd895.tar.gz
krb5-ab9f9a4a46e93259281d198a9fa9420886acd895.tar.xz
krb5-ab9f9a4a46e93259281d198a9fa9420886acd895.zip
* auth.h: Provide full prototype for xdr_des_block
* auth_gssapi.h: Complete prototypes for _svcauth_gssapi_unset_names(). * clnt.h: Prototype dispatch functions and all functions. * clnt_perror.c: Prototype static auth_errmsg(). * clnt_raw.h clnt_tcp.c, clnt_udp.c: Provide prototypes to static functions and match dispatch table prototypes. control function takes void * instead of caddr_t. * pmap_rmt.c: Move prototype for resultproc_t to pmap_clnt.h. * rpc.h: get_myaddress returns int. Add prototypes for callrpc and getrpcport. * rpc_commondata.c (rpc_createerr): When initializing rpc_creaerr use RPC_SUCCESS instead of 0. * get_myaddress.c, rpc_dtablesize.c: Include gssrpc/rpc.h for prototype. * pmap_clnt.h, pmap_prot.h, pmap_rmt.h, rpc_msg.h: Full prototypes for all functions. * svc.c: Provide full prototype for static function. * svc.h: Prototypes for dispatch functions added. Flushed out prototypes for all functions missing prototypes. Added prototype for svcfd_create. * svc_auth.c: Prototypes for all functions referenced. * svc_auth.h: Prototype dispatch functions to svc_auth_ops. * svc_auth_any.c: Replace use of authany_wrap() with a new local function that matches svc_auth_ops dispatch table. * svc_simple.c: Provide prototype for static function universal. Fill in missing types of parameters to gssrpc_registerrpc. * svc_raw.c svc_tcp.c, svc_udp.c: Provide prototypes for static functions and match prototypes in dispatch table. Change getargs and freeargs argument to void * from caddr_t. * xdr.c (xdr_void): Function to match prototype of arguments given. * xdr.h: Provide full prototypes for xdr_ops dispatch table and xdr_void(). * svc_auth_gssapi.c, xdr_alloc.c, xdr_mem.c, xdr_rec.c, xdr_stdio.c: Provide protypes for static functions and match dispatch tables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13528 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/xdr_rec.c')
-rw-r--r--src/lib/rpc/xdr_rec.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/lib/rpc/xdr_rec.c b/src/lib/rpc/xdr_rec.c
index fd140f1baa..2022504599 100644
--- a/src/lib/rpc/xdr_rec.c
+++ b/src/lib/rpc/xdr_rec.c
@@ -56,20 +56,14 @@ static char sccsid[] = "@(#)xdr_rec.c 1.21 87/08/11 Copyr 1984 Sun Micro";
#include <unistd.h>
#include <string.h>
-static unsigned int fix_buf_size();
-static bool_t flush_out();
-static bool_t get_input_bytes();
-static bool_t set_input_fragment();
-static bool_t skip_input_bytes();
-
-static bool_t xdrrec_getlong();
-static bool_t xdrrec_putlong();
-static bool_t xdrrec_getbytes();
-static bool_t xdrrec_putbytes();
-static unsigned int xdrrec_getpos();
-static bool_t xdrrec_setpos();
-static rpc_int32 * xdrrec_inline();
-static void xdrrec_destroy();
+static bool_t xdrrec_getlong(XDR *, long *);
+static bool_t xdrrec_putlong(XDR *, long *);
+static bool_t xdrrec_getbytes(XDR *, caddr_t, unsigned int);
+static bool_t xdrrec_putbytes(XDR *, caddr_t, unsigned int);
+static unsigned int xdrrec_getpos(XDR *);
+static bool_t xdrrec_setpos(XDR *, unsigned int);
+static rpc_int32 * xdrrec_inline(XDR *, int);
+static void xdrrec_destroy(XDR *);
static struct xdr_ops xdrrec_ops = {
xdrrec_getlong,
@@ -123,6 +117,11 @@ typedef struct rec_strm {
unsigned int recvsize;
} RECSTREAM;
+static unsigned int fix_buf_size(unsigned int);
+static bool_t flush_out(RECSTREAM *, bool_t);
+static bool_t get_input_bytes(RECSTREAM *, caddr_t, int);
+static bool_t set_input_fragment(RECSTREAM *);
+static bool_t skip_input_bytes(RECSTREAM *, rpc_int32);
/*
* Create an xdr handle for xdrrec