CVS update: samba4/source/librpc/ndr

tridge at samba.org tridge at samba.org
Sat Nov 22 19:11:18 EST 2003


Date:	Sat Nov 22 08:11:18 2003
Author:	tridge

Update of /home/cvs/samba4/source/librpc/ndr
In directory dp.samba.org:/tmp/cvs-serv20524

Modified Files:
	libndr.h ndr.c ndr_basic.c ndr_sec.c 
Log Message:
a fairly major upgrade to the dcerpc system

 * added a NDR validator. The way it works is that when the
   DCERPC_DEBUG_VALIDATE_* flags are set the dcerpc system will
   perform NDR buffer validation. On sending a request the packet is
   first marshalled, then unmarahslled, then marshalled again, and it is
   confirmed that the two marshalling results are idential. This
   ensures that our pull and push routines are absolutely in sync, so
   that we can be very confident that if a routine works in the client
   then the corresponding routine must work on the server side. A
   similar validation is performed on all replies.

 * a result of this change is that pidl is fussier about the [ref]
   tag. You can only use it on pointers (which is the only place it
   makes sense)

 * fixed a basic alignment bug in the push side of the NDR code

 * added server side pull/push support. Our dcerpc system is now fully
   ready to be used on the server side.

 * fixed the relative offset pointer list. It must be traversed in
   reverse order on push

 * added automatic value setting for the size parameter in outgoing
   SdBuf structures. 

 * expanded the ndr debugging code to always give a message on any
   failure

 * fixed the subcontext push code

 * fixed some memory leaks in smbtorture RPC tests





Revisions:
libndr.h		1.26 => 1.27
	http://www.samba.org/cgi-bin/cvsweb/samba4/source/librpc/ndr/libndr.h.diff?r1=1.26&r2=1.27
ndr.c		1.23 => 1.24
	http://www.samba.org/cgi-bin/cvsweb/samba4/source/librpc/ndr/ndr.c.diff?r1=1.23&r2=1.24
ndr_basic.c		1.30 => 1.31
	http://www.samba.org/cgi-bin/cvsweb/samba4/source/librpc/ndr/ndr_basic.c.diff?r1=1.30&r2=1.31
ndr_sec.c		1.8 => 1.9
	http://www.samba.org/cgi-bin/cvsweb/samba4/source/librpc/ndr/ndr_sec.c.diff?r1=1.8&r2=1.9



More information about the samba-cvs mailing list